Skip to content

Commit

Permalink
remove old deprecation in modular symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Feb 6, 2025
1 parent dc99dc8 commit 674824e
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/sage/modular/modsym/p1list.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ cdef class P1List():
"""
return len(self.__list)

def __repr__(self):
def __repr__(self) -> str:
"""
Return the string representation of this P1List.

Expand All @@ -838,7 +838,7 @@ cdef class P1List():
sage: str(L) # indirect doctest
'The projective line over the integers modulo 8'
"""
return "The projective line over the integers modulo %s" % self.__N
return f"The projective line over the integers modulo {self.__N}"

def lift_to_sl2z(self, int i):
r"""
Expand Down Expand Up @@ -1369,22 +1369,3 @@ def lift_to_sl2z(c, d, N):
if N <= 2147483647:
return lift_to_sl2z_llong(c, d, N)
raise NotImplementedError("N too large")


def _make_p1list(n):
"""
Helper function used in pickling.
Not intended for end-users.
EXAMPLES::
sage: from sage.modular.modsym.p1list import _make_p1list
sage: _make_p1list(3)
doctest:...: DeprecationWarning: _make_p1list() is deprecated
See https://github.com/sagemath/sage/issues/25848 for details.
The projective line over the integers modulo 3
"""
from sage.misc.superseded import deprecation_cython as deprecation
deprecation(25848, '_make_p1list() is deprecated')
return P1List(n)

0 comments on commit 674824e

Please sign in to comment.