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/projective/projective_morphism.py: Use sage.rings.ab…
Browse files Browse the repository at this point in the history
…c.pAdicField
  • Loading branch information
Matthias Koeppe committed Oct 24, 2021
1 parent b672836 commit e1412c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/schemes/projective/projective_morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@

from sage.calculus.functions import jacobian

import sage.rings.abc
from sage.rings.all import Integer
from sage.rings.algebraic_closure_finite_field import AlgebraicClosureFiniteField_generic
from sage.rings.complex_mpfr import ComplexField_class
Expand Down Expand Up @@ -987,14 +988,13 @@ def normalize_coordinates(self, **kwds):
self.scale_by(R(1) / GCD)

# scales by 1/gcd of the coefficients.
from sage.rings.padics.generic_nodes import is_pAdicField
if R in _NumberFields:
O = R.maximal_order()
elif is_FiniteField(R):
O = R
elif isinstance(R, QuotientRing_generic):
O = R.ring()
elif is_pAdicField(R):
elif isinstance(R, sage.rings.abc.pAdicField):
O = R.integer_ring()
else:
O = R
Expand Down

0 comments on commit e1412c7

Please sign in to comment.