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 'all import cached' src/sage | xargs sed -E -i.bak $'s/^(…
Browse files Browse the repository at this point in the history
… *)from sage.*all import (cached_[a-z]*) *$/\1from sage.misc.cachefunc import \2/'
  • Loading branch information
Matthias Koeppe committed Oct 21, 2021
1 parent 5fe8aa6 commit 6d5ec0a
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/sage/combinat/alternating_sign_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from sage.matrix.matrix_space import MatrixSpace
from sage.matrix.constructor import matrix
from sage.modules.free_module_element import zero_vector
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.rings.integer_ring import ZZ
from sage.arith.all import factorial
from sage.rings.integer import Integer
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/cluster_algebra_quiver/mutation_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from copy import copy

from sage.misc.all import cached_function
from sage.misc.cachefunc import cached_function
from sage.misc.flatten import flatten
from sage.graphs.all import DiGraph
from sage.combinat.all import Combinations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from sage.structure.sage_object import SageObject
from copy import copy
from sage.structure.unique_representation import UniqueRepresentation
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.rings.all import ZZ, infinity
from sage.graphs.all import Graph, DiGraph
from sage.arith.all import binomial, euler_phi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from sage.structure.category_object import CategoryObject
from sage.categories.modules import Modules
from sage.rings.integer_ring import ZZ
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.matrix.constructor import Matrix
from sage.sets.recursively_enumerated_set import RecursivelyEnumeratedSet
from sage.combinat.root_system.weyl_characters import WeylCharacterRing
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/root_system/root_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .cartan_type import CartanType
from sage.rings.integer_ring import ZZ
from sage.rings.rational_field import QQ
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from .root_space import RootSpace
from .weight_space import WeightSpace

Expand Down
4 changes: 2 additions & 2 deletions src/sage/combinat/sidon_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# https://www.gnu.org/licenses/
# ****************************************************************************
from sage.sets.set import Set
from sage.misc.all import cached_function
from sage.rings.all import Integer
from sage.misc.cachefunc import cached_function
from sage.rings.integer import Integer


def sidon_sets(N, g = 1):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/modular/modform/eisenstein_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

from sage.structure.all import Sequence
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
import sage.rings.all as rings
from sage.categories.all import Objects
from sage.matrix.all import Matrix
Expand Down
2 changes: 1 addition & 1 deletion src/sage/modules/filtered_vector_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
from sage.categories.fields import Fields
from sage.modules.free_module import FreeModule_ambient_field, VectorSpace
from sage.matrix.constructor import matrix
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method


def is_FilteredVectorSpace(X):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/modules/multi_filtered_vector_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from sage.rings.infinity import infinity, minus_infinity
from sage.categories.fields import Fields
from sage.modules.free_module import FreeModule_ambient_field, VectorSpace
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.modules.filtered_vector_space import FilteredVectorSpace


Expand Down
2 changes: 1 addition & 1 deletion src/sage/monoids/automatic_semigroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# ****************************************************************************

import operator
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.categories.semigroups import Semigroups
from sage.categories.sets_cat import Sets
from sage.categories.monoids import Monoids
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
is_fundamental_discriminant,
PolynomialRing)

from sage.misc.all import cached_function
from sage.misc.cachefunc import cached_function

@cached_function
def hilbert_class_polynomial(D, algorithm=None):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/elliptic_curves/padics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
sqrt = math.sqrt
import sage.schemes.hyperelliptic_curves.monsky_washnitzer
import sage.schemes.hyperelliptic_curves.hypellfrob
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method

def __check_padic_hypotheses(self, p):
r"""
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/generic/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# ****************************************************************************

from sage.structure.parent import Parent
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.rings.all import (ZZ, CommutativeRing)
from sage.rings.ideal import is_Ideal
from sage.structure.unique_representation import UniqueRepresentation
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/toric/morphism.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
from sage.structure.sequence import Sequence
from sage.rings.integer_ring import ZZ
from sage.arith.all import gcd
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.matrix.constructor import matrix, identity_matrix
from sage.modules.free_module_element import vector
from sage.geometry.all import Cone, Fan
Expand Down
2 changes: 1 addition & 1 deletion src/sage/schemes/toric/sheaf/klyachko.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from sage.structure.all import SageObject
from sage.structure.richcmp import richcmp_method, richcmp, richcmp_not_equal
from sage.rings.integer_ring import ZZ
from sage.misc.all import cached_method
from sage.misc.cachefunc import cached_method
from sage.matrix.constructor import vector, block_matrix, zero_matrix
from sage.geometry.cone import is_Cone
from sage.modules.multi_filtered_vector_space import MultiFilteredVectorSpace
Expand Down

0 comments on commit 6d5ec0a

Please sign in to comment.