|
425 | 425 | from sage.matrix.constructor import matrix
|
426 | 426 | from sage.matrix.constructor import column_matrix
|
427 | 427 | from sage.structure.element import Element, Matrix
|
| 428 | +from sage.rings.finite_rings.finite_field_base import FiniteField as FiniteField_base |
428 | 429 | from sage.rings.finite_rings.finite_field_constructor import FiniteField
|
429 | 430 | from sage.structure.sage_object import SageObject
|
430 | 431 | from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
|
@@ -759,7 +760,7 @@ def _GF_to_hex(self, GF):
|
759 | 760 | """
|
760 | 761 | if not isinstance(GF, Matrix) and \
|
761 | 762 | not isinstance(GF, list) and \
|
762 |
| - not (isinstance(GF, Element) and isinstance(GF.parent(), FiniteField)): |
| 763 | + not (isinstance(GF, Element) and isinstance(GF.parent(), FiniteField_base)): |
763 | 764 | msg = ("keyword 'GF' must be a matrix over {0}, a list of "
|
764 | 765 | "elements from {0}, or a single element from {0}")
|
765 | 766 | raise TypeError(msg.format(self._F))
|
@@ -884,7 +885,7 @@ def _GF_to_bin(self, GF):
|
884 | 885 | """
|
885 | 886 | if not isinstance(GF, Matrix) and \
|
886 | 887 | not isinstance(GF, list) and \
|
887 |
| - not (isinstance(GF, Element) and isinstance(GF.parent(), FiniteField)): |
| 888 | + not (isinstance(GF, Element) and isinstance(GF.parent(), FiniteField_base)): |
888 | 889 | msg = ("keyword 'GF' must be a matrix over {0}, a list of "
|
889 | 890 | "elements from {0}, or a single element from {0}")
|
890 | 891 | raise TypeError(msg.format(self))
|
|
0 commit comments