Skip to content

Commit 29ad54e

Browse files
author
Matthias Koeppe
committed
Replace relative imports by absolute imports because pytest
1 parent 10d2e1c commit 29ad54e

File tree

8 files changed

+40
-49
lines changed

8 files changed

+40
-49
lines changed

src/sage/combinat/partition_algebra.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
# ****************************************************************************
1818
from sage.arith.misc import binomial, factorial
1919
from sage.categories.algebras_with_basis import AlgebrasWithBasis
20+
from sage.combinat.combinat import catalan_number
21+
from sage.combinat.free_module import CombinatorialFreeModule
22+
from sage.combinat.permutation import Permutations
23+
from sage.combinat.set_partition import SetPartition, SetPartitions, SetPartitions_set
24+
from sage.combinat.subset import Subsets
2025
from sage.functions.all import ceil
2126
from sage.graphs.graph import Graph
2227
from sage.rings.integer_ring import ZZ
2328
from sage.rings.rational_field import QQ
2429
from sage.sets.set import Set, Set_generic
2530

26-
from .combinat import catalan_number
27-
from .free_module import CombinatorialFreeModule
28-
from .permutation import Permutations
29-
from .set_partition import SetPartition, SetPartitions, SetPartitions_set
30-
from .subset import Subsets
31-
3231

3332
def _int_or_half_int(k):
3433
r"""

src/sage/combinat/permutation.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,15 @@
247247
from sage.categories.finite_weyl_groups import FiniteWeylGroups
248248
from sage.categories.infinite_enumerated_sets import InfiniteEnumeratedSets
249249
from sage.categories.sets_with_grading import SetsWithGrading
250+
from sage.combinat.backtrack import GenericBacktracker
251+
from sage.combinat.combinat import CombinatorialElement, catalan_number
252+
from sage.combinat.combinatorial_map import combinatorial_map
253+
from sage.combinat.composition import Composition
254+
from sage.combinat.permutation_cython import (left_action_product, right_action_product,
255+
left_action_same_n, right_action_same_n,
256+
map_to_list, next_perm)
257+
from sage.combinat.rsk import RSK, RSK_inverse
258+
from sage.combinat.tools import transitive_ideal
250259
from sage.graphs.digraph import DiGraph
251260
from sage.groups.perm_gps.permgroup_element import PermutationGroupElement
252261
from sage.groups.perm_gps.permgroup_named import SymmetricGroup
@@ -262,16 +271,6 @@
262271
from sage.structure.parent import Parent
263272
from sage.structure.unique_representation import UniqueRepresentation
264273

265-
from .backtrack import GenericBacktracker
266-
from .combinat import CombinatorialElement, catalan_number
267-
from .combinatorial_map import combinatorial_map
268-
from .composition import Composition
269-
from .permutation_cython import (left_action_product, right_action_product,
270-
left_action_same_n, right_action_same_n,
271-
map_to_list, next_perm)
272-
from .rsk import RSK, RSK_inverse
273-
from .tools import transitive_ideal
274-
275274

276275
class Permutation(CombinatorialElement):
277276
r"""

src/sage/combinat/sf/elementary.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
#*****************************************************************************
2020
from sage.arith.misc import binomial, factorial
2121
from sage.combinat.partition import Partition
22+
from sage.combinat.sf import multiplicative, classical
2223
from sage.misc.misc_c import prod
2324
from sage.rings.infinity import infinity
2425

25-
from . import multiplicative, classical
26-
2726

2827
###################################
2928
# #

src/sage/combinat/sf/homogeneous.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
####################################
2828
from sage.arith.misc import binomial, factorial
2929
from sage.combinat.partition import Partition
30+
from sage.combinat.sf import multiplicative, classical
3031
from sage.misc.misc_c import prod
3132
from sage.rings.infinity import infinity
3233

33-
from . import multiplicative, classical
34-
3534

3635
class SymmetricFunctionAlgebra_homogeneous(multiplicative.SymmetricFunctionAlgebra_multiplicative):
3736
def __init__(self, Sym):

src/sage/combinat/similarity_class_type.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ class type, it is also possible to compute the number of classes of that type
192192

193193
from sage.arith.misc import divisors, factorial, moebius
194194
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
195+
from sage.combinat.combinat import CombinatorialElement
196+
from sage.combinat.misc import IterableFunctionCall
197+
from sage.combinat.partition import Partitions, Partition
195198
from sage.misc.cachefunc import cached_in_parent_method, cached_function
196199
from sage.misc.inherit_comparison import InheritComparisonClasscallMetaclass
197200
from sage.misc.misc_c import prod
@@ -203,11 +206,6 @@ class type, it is also possible to compute the number of classes of that type
203206
from sage.structure.parent import Parent
204207
from sage.structure.unique_representation import UniqueRepresentation
205208

206-
from .combinat import CombinatorialElement
207-
from .misc import IterableFunctionCall
208-
from .partition import Partitions, Partition
209-
210-
211209

212210
@cached_function
213211
def fq(n, q=None):

src/sage/combinat/species/cycle_species.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
#*****************************************************************************
1414

1515
from sage.arith.misc import divisors, euler_phi
16+
from sage.combinat.species.misc import accept_size
17+
from sage.combinat.species.species import GenericCombinatorialSpecies
18+
from sage.combinat.species.structure import GenericSpeciesStructure
1619
from sage.structure.unique_representation import UniqueRepresentation
1720

18-
from .misc import accept_size
19-
from .species import GenericCombinatorialSpecies
20-
from .structure import GenericSpeciesStructure
21-
22-
2321

2422
class CycleSpeciesStructure(GenericSpeciesStructure):
2523
def __repr__(self):

src/sage/combinat/tableau.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,34 +86,34 @@
8686
# ****************************************************************************
8787
from itertools import repeat
8888

89+
import sage.libs.symmetrica.all as symmetrica
90+
import sage.misc.prandom as random
91+
8992
from sage.arith.misc import binomial, factorial, multinomial
9093
from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets
9194
from sage.categories.infinite_enumerated_sets import InfiniteEnumeratedSets
9295
from sage.categories.sets_cat import Sets
96+
from sage.combinat import permutation
97+
from sage.combinat.combinatorial_map import combinatorial_map
98+
from sage.combinat.composition import Composition, Compositions
99+
from sage.combinat.integer_vector import IntegerVectors, integer_vectors_nk_fast_iter
100+
from sage.combinat.posets.posets import Poset
93101
from sage.groups.perm_gps.permgroup import PermutationGroup
102+
from sage.misc.inherit_comparison import InheritComparisonClasscallMetaclass
103+
from sage.misc.misc import powerset
104+
from sage.misc.misc_c import prod
105+
from sage.misc.persist import register_unpickle_override
106+
from sage.rings.finite_rings.integer_mod_ring import IntegerModRing
107+
from sage.rings.infinity import PlusInfinity
108+
from sage.rings.integer import Integer
94109
from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets
95110
from sage.sets.family import Family
96111
from sage.sets.non_negative_integers import NonNegativeIntegers
97112
from sage.structure.global_options import GlobalOptions
98-
from sage.structure.unique_representation import UniqueRepresentation
99113
from sage.structure.list_clone import ClonableList
100114
from sage.structure.parent import Parent
101115
from sage.structure.richcmp import richcmp, richcmp_method
102-
from sage.misc.persist import register_unpickle_override
103-
from sage.misc.inherit_comparison import InheritComparisonClasscallMetaclass
104-
from sage.rings.finite_rings.integer_mod_ring import IntegerModRing
105-
from sage.rings.infinity import PlusInfinity
106-
from sage.rings.integer import Integer
107-
import sage.libs.symmetrica.all as symmetrica
108-
import sage.misc.prandom as random
109-
from sage.misc.misc_c import prod
110-
from sage.misc.misc import powerset
111-
112-
from . import permutation
113-
from .combinatorial_map import combinatorial_map
114-
from .composition import Composition, Compositions
115-
from .integer_vector import IntegerVectors, integer_vectors_nk_fast_iter
116-
from .posets.posets import Poset
116+
from sage.structure.unique_representation import UniqueRepresentation
117117

118118

119119
@richcmp_method

src/sage/combinat/words/lyndon_word.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
from sage.combinat.combinat_cython import lyndon_word_iterator
1717
from sage.combinat.composition import Composition, Compositions
1818
from sage.combinat.necklace import _sfc
19+
from sage.combinat.words.finite_word import FiniteWord_class
20+
from sage.combinat.words.words import FiniteWords
1921
from sage.rings.integer import Integer
2022
from sage.structure.parent import Parent
2123
from sage.structure.unique_representation import UniqueRepresentation
2224

23-
from .finite_word import FiniteWord_class
24-
from .words import FiniteWords
25-
2625

2726
def LyndonWords(e=None, k=None):
2827
"""

0 commit comments

Comments
 (0)