Skip to content

Commit 8c2d315

Browse files
author
Matthias Koeppe
committed
src/sage/matroids/linear_matroid.pyx: Remove unused imports, sort imports
1 parent 29ad54e commit 8c2d315

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

src/sage/matroids/linear_matroid.pyx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,30 +111,27 @@ Methods
111111
# https://www.gnu.org/licenses/
112112
# ****************************************************************************
113113

114+
from copy import copy, deepcopy
115+
from itertools import combinations, product
116+
114117
from cpython.object cimport Py_EQ, Py_NE
115118

116119
from sage.data_structures.bitset_base cimport *
117-
from sage.structure.richcmp cimport rich_to_bool
118-
from sage.matroids.matroid cimport Matroid
119-
from sage.matroids.basis_exchange_matroid cimport BasisExchangeMatroid
120-
from .lean_matrix cimport (LeanMatrix, GenericMatrix, BinaryMatrix,
121-
TernaryMatrix, QuaternaryMatrix, PlusMinusOneMatrix,
122-
RationalMatrix, generic_identity)
123-
from .set_system cimport SetSystem
124-
from .utilities import newlabel, spanning_stars, spanning_forest, lift_cross_ratios
125-
from sage.graphs.spanning_tree import kruskal
126120
from sage.graphs.graph import Graph
127-
128-
from sage.matrix.matrix2 cimport Matrix
129-
import sage.matrix.constructor
121+
from sage.graphs.spanning_tree import kruskal
130122
from sage.matrix.constructor import matrix
131-
from copy import copy, deepcopy
123+
from sage.matrix.matrix2 cimport Matrix
124+
from sage.matroids.basis_exchange_matroid cimport BasisExchangeMatroid
125+
from sage.matroids.lean_matrix cimport (LeanMatrix, GenericMatrix, BinaryMatrix,
126+
TernaryMatrix, QuaternaryMatrix, PlusMinusOneMatrix,
127+
RationalMatrix, generic_identity)
128+
from sage.matroids.matroid cimport Matroid
129+
from sage.matroids.set_system cimport SetSystem
130+
from sage.matroids.utilities import newlabel, spanning_stars, spanning_forest, lift_cross_ratios
131+
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
132132
from sage.rings.integer_ring import ZZ
133133
from sage.rings.rational_field import QQ
134-
from sage.rings.finite_rings.finite_field_constructor import FiniteField
135-
from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF
136-
import itertools
137-
from itertools import combinations, product
134+
from sage.structure.richcmp cimport rich_to_bool
138135

139136
cdef bint GF2_not_defined = True
140137
cdef GF2, GF2_one, GF2_zero

0 commit comments

Comments
 (0)