Skip to content

Commit bfc5cdf

Browse files
author
Matthias Koeppe
committed
src/sage/rings/finite_rings/integer_mod.pyx: Move import from sage.groups into method
1 parent 0fd5967 commit bfc5cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/rings/finite_rings/integer_mod.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ from sage.structure.parent cimport Parent
108108

109109
from sage.arith.misc import CRT as crt
110110
from sage.arith.functions import lcm
111-
from sage.groups.generic import discrete_log
112111

113112

114113
cdef Integer one_Z = Integer(1)
@@ -781,6 +780,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
781780

782781
if p == 2 and e >= 3: # (ZZ/2^e)* is not cyclic; must not give unsolvable DLPs to Pari
783782
try:
783+
from sage.groups.generic import discrete_log
784784
v = discrete_log(a_red, b_red, nb)
785785
except ValueError:
786786
raise ValueError(f"no logarithm of {self} found to base {b} modulo {self.modulus()}"

0 commit comments

Comments
 (0)