From 301a0d1f4568ae4d17c44103d0d17ea93085f5f0 Mon Sep 17 00:00:00 2001 From: Alex Chandler Date: Sun, 29 Jan 2023 14:10:18 -0800 Subject: [PATCH] sage -fiximports src/sage/{topology,homology} --- src/sage/homology/chain_complex.py | 3 ++- src/sage/homology/koszul_complex.py | 2 +- src/sage/topology/delta_complex.py | 2 +- src/sage/topology/simplicial_complex.py | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/sage/homology/chain_complex.py b/src/sage/homology/chain_complex.py index d88389e5c6d..1a8f28b1be7 100644 --- a/src/sage/homology/chain_complex.py +++ b/src/sage/homology/chain_complex.py @@ -62,7 +62,8 @@ from sage.matrix.constructor import matrix from sage.misc.latex import latex from sage.misc.superseded import deprecation -from sage.rings.all import GF, prime_range +from sage.rings.finite_rings.finite_field_constructor import FiniteField as GF +from sage.rings.fast_arith import prime_range from sage.homology.homology_group import HomologyGroup diff --git a/src/sage/homology/koszul_complex.py b/src/sage/homology/koszul_complex.py index 858d5a71283..af480a9c8db 100644 --- a/src/sage/homology/koszul_complex.py +++ b/src/sage/homology/koszul_complex.py @@ -14,7 +14,7 @@ from sage.structure.unique_representation import UniqueRepresentation from sage.structure.parent import Parent from sage.combinat.combination import rank -from sage.arith.all import binomial +from sage.arith.misc import binomial from sage.rings.integer_ring import ZZ from sage.matrix.constructor import matrix from sage.homology.chain_complex import ChainComplex_class diff --git a/src/sage/topology/delta_complex.py b/src/sage/topology/delta_complex.py index 420fd2fad5a..bdc16265c68 100644 --- a/src/sage/topology/delta_complex.py +++ b/src/sage/topology/delta_complex.py @@ -59,7 +59,7 @@ from .simplicial_complex import Simplex, lattice_paths, SimplicialComplex from sage.homology.chain_complex import ChainComplex from sage.graphs.graph import Graph -from sage.arith.all import binomial +from sage.arith.misc import binomial from sage.misc.cachefunc import cached_method diff --git a/src/sage/topology/simplicial_complex.py b/src/sage/topology/simplicial_complex.py index 79393f7317b..c61bde73d76 100644 --- a/src/sage/topology/simplicial_complex.py +++ b/src/sage/topology/simplicial_complex.py @@ -1452,7 +1452,7 @@ def h_vector(self): sage: octa.h_vector() [1, 3, 3, 1] """ - from sage.arith.all import binomial + from sage.arith.misc import binomial d = self.dimension() f = self.f_vector() # indexed starting at 0, since it's a Python list h = [] @@ -1573,7 +1573,7 @@ def h_triangle(self): [0, 0, 4], [1, 2, -1, 0]] """ - from sage.arith.all import binomial + from sage.arith.misc import binomial ret = [[0]*(i+1) for i in range(self.dimension() + 2)] f = self.f_triangle() for i, row in enumerate(ret):