Skip to content

Commit 674824e

Browse files
committed
remove old deprecation in modular symbols
1 parent dc99dc8 commit 674824e

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/sage/modular/modsym/p1list.pyx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ cdef class P1List():
828828
"""
829829
return len(self.__list)
830830

831-
def __repr__(self):
831+
def __repr__(self) -> str:
832832
"""
833833
Return the string representation of this P1List.
834834

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

843843
def lift_to_sl2z(self, int i):
844844
r"""
@@ -1369,22 +1369,3 @@ def lift_to_sl2z(c, d, N):
13691369
if N <= 2147483647:
13701370
return lift_to_sl2z_llong(c, d, N)
13711371
raise NotImplementedError("N too large")
1372-
1373-
1374-
def _make_p1list(n):
1375-
"""
1376-
Helper function used in pickling.
1377-
1378-
Not intended for end-users.
1379-
1380-
EXAMPLES::
1381-
1382-
sage: from sage.modular.modsym.p1list import _make_p1list
1383-
sage: _make_p1list(3)
1384-
doctest:...: DeprecationWarning: _make_p1list() is deprecated
1385-
See https://github.com/sagemath/sage/issues/25848 for details.
1386-
The projective line over the integers modulo 3
1387-
"""
1388-
from sage.misc.superseded import deprecation_cython as deprecation
1389-
deprecation(25848, '_make_p1list() is deprecated')
1390-
return P1List(n)

0 commit comments

Comments
 (0)