From 0a14b557e8aaffce10d0e63dc0dfe42430ed7bd1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Dec 2021 21:24:23 -0800 Subject: [PATCH] Remove imports from sage.rings.all --- src/sage/categories/rings.py | 3 ++- src/sage/topology/simplicial_complex_examples.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sage/categories/rings.py b/src/sage/categories/rings.py index cd3ff689314..1a937b409e4 100644 --- a/src/sage/categories/rings.py +++ b/src/sage/categories/rings.py @@ -1135,7 +1135,8 @@ def normalize_arg(arg): # how to pass in names? names = tuple(_gen_names(elts)) if len(elts) == 1: - from sage.rings.all import CIF, CLF, RLF + from sage.rings.all import CIF + from sage.rings.real_lazy import CLF, RLF elt = elts[0] try: iv = CIF(elt) diff --git a/src/sage/topology/simplicial_complex_examples.py b/src/sage/topology/simplicial_complex_examples.py index 5b49a8de836..7bc357e8673 100644 --- a/src/sage/topology/simplicial_complex_examples.py +++ b/src/sage/topology/simplicial_complex_examples.py @@ -1340,7 +1340,7 @@ def SumComplex(n, A): sage: factor(26951480558170926865) 5 * 311 * 683 * 1117 * 11657 * 1948909 """ - from sage.rings.all import Integers + from sage.rings.finite_rings.integer_mod_ring import Integers Zn = Integers(n) A = frozenset([Zn(x) for x in A]) facets = []