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 'misc.all import' | xargs sed -i.bak 's/misc.all import c…
Browse files Browse the repository at this point in the history
…artesian_product_iterator/misc.mrange import cartesian_product_iterator/'
  • Loading branch information
Matthias Koeppe committed Dec 7, 2021
1 parent e72dc8e commit d114096
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/sage/rings/number_field/number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -5100,7 +5100,7 @@ def selmer_group_iterator(self, S, m, proof=True):
"""
KSgens, ords = self.selmer_generators(S=S, m=m, proof=proof, orders=True)
one = self.one()
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
for ev in cartesian_product_iterator([range(o) for o in ords]):
yield prod([p ** e for p, e in zip(KSgens, ev)], one)

Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/affine/affine_rational_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.schemes.generic.scheme import is_Scheme


Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/affine/affine_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
_Fields = Fields()
from sage.categories.number_fields import NumberFields
from sage.misc.latex import latex
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.structure.category_object import normalize_names
from sage.schemes.generic.scheme import AffineScheme
from sage.schemes.generic.ambient_space import AmbientSpace
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/ell_rational_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -6579,7 +6579,7 @@ def S_integral_x_coords_with_abs_bounded_by(abs_bound):
return set(xs)
#<-------------------------------------------------------------------------
#End internal functions ###############################################
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator

E = self
tors_points = E.torsion_points()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/height.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from sage.rings.all import RR, RDF, RIF, CC, CDF, CIF

from sage.misc.cachefunc import cached_method
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.arith.all import lcm, factorial
from sage.ext.fast_callable import fast_callable
from sage.functions.log import log, exp
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/projective/projective_rational_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
from sage.arith.all import gcd, srange, next_prime, previous_prime, crt
from sage.rings.all import ZZ, RR
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.misc.misc_c import prod
from sage.misc.mrange import xmrange
from sage.schemes.generic.scheme import is_Scheme
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/projective/projective_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
from sage.categories.map import Map
from sage.misc.latex import latex
from sage.misc.misc_c import prod
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.misc.persist import register_unpickle_override

from sage.structure.category_object import normalize_names
Expand Down
4 changes: 2 additions & 2 deletions src/sage/symbolic/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ def solve_mod(eqns, modulus, solution_dict=False):
"""
from sage.rings.all import Integer, Integers, crt_basis
from sage.structure.element import Expression
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator
from sage.modules.free_module_element import vector
from sage.matrix.constructor import matrix

Expand Down Expand Up @@ -1686,7 +1686,7 @@ def _solve_mod_prime_power(eqns, p, m, vars):
"""
from sage.rings.all import Integers, PolynomialRing
from sage.modules.free_module_element import vector
from sage.misc.all import cartesian_product_iterator
from sage.misc.mrange import cartesian_product_iterator

mrunning = 1
ans = []
Expand Down

0 comments on commit d114096

Please sign in to comment.