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

Commit

Permalink
git grep -l -E ' (Q as QQ|Z as ZZ)' | xargs sed -i.bak 's/ Q as QQ/ Q…
Browse files Browse the repository at this point in the history
…Q/;s/ Z as ZZ/ ZZ/;'
  • Loading branch information
Matthias Koeppe committed Jan 30, 2023
1 parent aefcd52 commit e545dea
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/BSD.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Birch and Swinnerton-Dyer formulas"

from sage.arith.misc import prime_divisors
from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.rings.infinity import Infinity
from sage.rings.number_field.number_field import QuadraticField
from sage.functions.other import ceil
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/cardinality.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .constructor import EllipticCurve, EllipticCurve_from_j
from sage.schemes.curves.projective_curve import Hasse_bounds
from sage.rings.integer import Integer
from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.rings.polynomial.polynomial_ring import polygen
from sage.groups.generic import order_from_bounds
Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@

from sage.interfaces.magma import magma
from sage.rings.integer import Integer
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import QQ
from sage.rings.integer_ring import ZZ
from sage.rings.integer_ring import IntegerRing
from sage.rings.number_field.number_field import is_fundamental_discriminant
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/ell_finite_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from .constructor import EllipticCurve
from sage.schemes.hyperelliptic_curves.hyperelliptic_finite_field import HyperellipticCurve_finite_field
from sage.rings.integer import Integer
from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.rings.polynomial.polynomial_ring import polygen
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/ell_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -3261,7 +3261,7 @@ def elliptic_logarithm(self, embedding=None, precision=100,
from sage.rings.number_field.number_field import refine_embedding
from sage.rings.real_mpfr import RealField
from sage.rings.complex_mpfr import ComplexField
from sage.rings.rational_field import Q as QQ
from sage.rings.rational_field import QQ

# Check the trivial case:

Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/ell_rational_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
import sage.rings.all as rings
from sage.rings.power_series_ring import PowerSeriesRing
from sage.rings.infinity import Infinity as oo
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.integer import Integer
from sage.rings.integer_ring import IntegerRing
from sage.rings.real_mpfr import RealField
Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/gal_reps_number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
from sage.arith.misc import primes
from sage.sets.set import Set
from sage.rings.integer import Integer
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.infinity import Infinity


Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/heegner.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@
import sage.rings.number_field.number_field_element
import sage.rings.number_field.number_field as number_field
import sage.rings.all as rings
from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.rings.rational_field import Q as QQ
from sage.rings.rational_field import QQ
from sage.rings.complex_double import CDF
from sage.rings.finite_rings.integer_mod_ring import IntegerModRing as Integers
from sage.rings.real_mpfr import RealField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from sage.rings.laurent_series_ring import LaurentSeriesRing
from sage.rings.rational_field import RationalField
from sage.rings.complex_mpfr import ComplexField
from sage.rings.rational_field import Q as QQ
from sage.rings.rational_field import QQ


class ModularParameterization:
Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/elliptic_curves/period_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
"""

from sage.modules.free_module import FreeModule_generic_pid
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.real_mpfr import RealField
from sage.rings.complex_mpfr import ComplexField
from sage.rings.qqbar import QQbar
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/sha_tate.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
from sage.rings.real_mpfr import RealField
from sage.rings.rational_field import RationalField
from sage.rings.real_mpfi import RIF
from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.functions.log import log
from math import sqrt
from sage.misc.verbose import verbose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# https://www.gnu.org/licenses/
# ****************************************************************************

from sage.rings.integer_ring import Z as ZZ
from sage.rings.integer_ring import ZZ
from sage.rings.real_mpfr import RR
from sage.rings.rational_field import Q as QQ
from sage.rings.rational_field import QQ
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.arith.misc import binomial
from sage.rings.power_series_ring import PowerSeriesRing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

from sage.rings.power_series_ring import PowerSeriesRing
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.rings.padics.factory import Qp as pAdicField
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.rings.real_mpfr import RR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
# https://www.gnu.org/licenses/
# ****************************************************************************

from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import QQ
from sage.rings.integer_ring import ZZ
from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.finite_rings.finite_field_constructor import FiniteField
from sage.rings.number_field.number_field import NumberField
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/hyperelliptic_curves/jacobian_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# ****************************************************************************

from sage.rings.integer import Integer
from sage.rings.rational_field import Q as QQ
from sage.rings.rational_field import QQ
from sage.misc.lazy_attribute import lazy_attribute
from sage.schemes.jacobians.abstract_jacobian import Jacobian_generic
from . import jacobian_homset
Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
from sage.rings.rational_field import RationalField as Rationals
from sage.rings.rational import Rational
from sage.rings.laurent_series_ring import LaurentSeriesRing
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import QQ
from sage.rings.integer_ring import ZZ
from sage.rings.ring import IntegralDomain
from sage.rings.infinity import Infinity
from sage.rings.laurent_series_ring import is_LaurentSeriesRing
Expand Down
4 changes: 2 additions & 2 deletions src/sage/schemes/plane_conics/con_rational_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# ****************************************************************************

from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing
from sage.rings.integer_ring import Z as ZZ
from sage.rings.rational_field import Q as QQ
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ

import sage.rings.abc

Expand Down

0 comments on commit e545dea

Please sign in to comment.