Skip to content

Commit bdedb4b

Browse files
author
Matthias Koeppe
committed
src/sage/rings/finite_rings/integer_mod.pyx: Remove keyword deprecated in #32375 (2021)
1 parent 29401c6 commit bdedb4b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/sage/rings/finite_rings/integer_mod.pyx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
629629
else:
630630
return sib(self.parent())(v)
631631

632-
def log(self, b=None, logarithm_exists=None):
632+
def log(self, b=None):
633633
r"""
634634
Compute the discrete logarithm of this element to base `b`,
635635
that is,
@@ -759,11 +759,6 @@ cdef class IntegerMod_abstract(FiniteRingElement):
759759
760760
- Lorenz Panny (2021): speedups for composite moduli
761761
"""
762-
763-
if logarithm_exists is not None:
764-
from sage.misc.superseded import deprecation
765-
deprecation(32375, 'The "logarithm_exists" argument to .log() is no longer necessary and will be removed at some point.')
766-
767762
if not self.is_unit():
768763
raise ValueError(f"logarithm of {self} is not defined since it is not a unit modulo {self.modulus()}")
769764

0 commit comments

Comments
 (0)