Skip to content

Commit

Permalink
sagemathgh-39461: remove old deprecation in modular symbols
Browse files Browse the repository at this point in the history
    
found using the scripts in sagemath#39262

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
    
URL: sagemath#39461
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
  • Loading branch information
Release Manager committed Feb 8, 2025
2 parents e38c43d + 674824e commit 26495ff
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 26495ff

Please sign in to comment.