diff --git a/src/sage/rings/asymptotic/asymptotic_expansion_generators.py b/src/sage/rings/asymptotic/asymptotic_expansion_generators.py index a7f46c65a58..92d1e17b331 100644 --- a/src/sage/rings/asymptotic/asymptotic_expansion_generators.py +++ b/src/sage/rings/asymptotic/asymptotic_expansion_generators.py @@ -270,7 +270,7 @@ def log_Stirling(var, precision=None, skip_constant_summand=False): result += log(2*coefficient_ring('pi')) / 2 from sage.misc.misc import srange - from sage.rings.arith import bernoulli + from sage.arith.all import bernoulli for k in srange(2, 2*precision - 6, 2): result += bernoulli(k) / k / (k-1) / n**(k-1)