Skip to content

Commit 5ca23a5

Browse files
committed
projective_morphism.py: Simplify code
1 parent 89fde7a commit 5ca23a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sage/schemes/projective/projective_morphism.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,7 @@ def normalize_coordinates(self, **kwds):
999999

10001000
# Clear any denominators from the coefficients
10011001
if R in NumberFields():
1002-
O = R.maximal_order()
1003-
1004-
if O is ZZ:
1002+
if R.maximal_order() is ZZ:
10051003
denom = lcm([self[i].denominator() for i in range(N)])
10061004
else:
10071005
denom = R.ideal([c for poly in self for c in poly.coefficients()]).norm().denominator()

0 commit comments

Comments
 (0)