diff --git a/src/sage/rings/rational_field.py b/src/sage/rings/rational_field.py index d4dac6aca19..dc457eccf6d 100644 --- a/src/sage/rings/rational_field.py +++ b/src/sage/rings/rational_field.py @@ -540,7 +540,7 @@ def primes_of_bounded_norm_iter(self, B): if B < 2: return - from sage.arith.all import primes + from sage.arith.misc import primes for p in primes(B+1): yield p @@ -1071,7 +1071,7 @@ def extension(self, poly, names, **kwds): sage: a^3 -5 """ - from sage.rings.number_field.all import NumberField + from sage.rings.number_field.number_field import NumberField return NumberField(poly, names=names, **kwds) def algebraic_closure(self):