@@ -106,7 +106,7 @@ from sage.rings.integer cimport Integer
106
106
from sage.categories.homset import Hom
107
107
from sage.structure.element cimport Element
108
108
109
- from sage.rings.finite_rings.finite_field_base import FiniteField
109
+ from sage.rings.finite_rings.finite_field_base import FiniteField as FiniteField_base
110
110
from sage.rings.morphism cimport RingHomomorphism, RingHomomorphism_im_gens, FrobeniusEndomorphism_generic
111
111
from sage.rings.finite_rings.finite_field_constructor import FiniteField
112
112
@@ -227,9 +227,9 @@ cdef class FiniteFieldHomomorphism_generic(RingHomomorphism_im_gens):
227
227
"""
228
228
domain = parent.domain()
229
229
codomain = parent.codomain()
230
- if not isinstance (domain, FiniteField ):
230
+ if not isinstance (domain, FiniteField_base ):
231
231
raise TypeError (" The domain is not a finite field or does not provide the required interface for finite fields" )
232
- if not isinstance (codomain, FiniteField ):
232
+ if not isinstance (codomain, FiniteField_base ):
233
233
raise TypeError (" The codomain is not a finite field or does not provide the required interface for finite fields" )
234
234
if domain.characteristic() != codomain.characteristic() or codomain.degree() % domain.degree() != 0 :
235
235
raise ValueError (" No embedding of %s into %s " % (domain, codomain))
@@ -522,7 +522,7 @@ cdef class FrobeniusEndomorphism_finite_field(FrobeniusEndomorphism_generic):
522
522
...
523
523
TypeError: The domain is not a finite field or does not provide the required interface for finite fields
524
524
"""
525
- if not isinstance (domain, FiniteField ):
525
+ if not isinstance (domain, FiniteField_base ):
526
526
raise TypeError (" The domain is not a finite field or does not provide the required interface for finite fields" )
527
527
try :
528
528
n = Integer(n)
0 commit comments