Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/schemes/elliptic_curves/constructor.py: Use sage.rings.abc.p…
Browse files Browse the repository at this point in the history
…AdicField
  • Loading branch information
Matthias Koeppe committed Oct 24, 2021
1 parent c32b3a2 commit 96a778b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def create_object(self, version, key, **kwds):
elif is_NumberField(R):
from .ell_number_field import EllipticCurve_number_field
return EllipticCurve_number_field(R, x)
elif rings.is_pAdicField(R):
elif isinstance(R, sage.rings.abc.pAdicField):
from .ell_padic_field import EllipticCurve_padic_field
return EllipticCurve_padic_field(R, x)
elif is_FiniteField(R) or (isinstance(R, sage.rings.abc.IntegerModRing) and R.characteristic().is_prime()):
Expand Down

0 comments on commit 96a778b

Please sign in to comment.