Skip to content

Commit d0295c9

Browse files
author
Release Manager
committed
gh-39463: remove deprecated stuff in cremona_database found using the scripts in #39262 ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: #39463 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents 77d4ebb + 4fa4d53 commit d0295c9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/sage/databases/cremona.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def is_optimal_id(id):
177177
return id[-1] == '1' and not id[-2].isdigit()
178178

179179

180-
def cremona_letter_code(n):
180+
def cremona_letter_code(n) -> str:
181181
"""
182182
Return the Cremona letter code corresponding to an integer.
183183
@@ -252,7 +252,7 @@ def cremona_letter_code(n):
252252
return s
253253

254254

255-
def old_cremona_letter_code(n):
255+
def old_cremona_letter_code(n) -> str:
256256
r"""
257257
Return the *old* Cremona letter code corresponding to an integer.
258258
@@ -1651,9 +1651,11 @@ def _init_allgens(self, ftpdata, largest_conductor=0):
16511651
_db = None
16521652

16531653

1654-
def CremonaDatabase(name=None, mini=None, set_global=None):
1654+
def CremonaDatabase(name=None, mini=None):
16551655
"""
1656-
Initialize the Cremona database with name ``name``. If ``name`` is
1656+
Initialize the Cremona database with name ``name``.
1657+
1658+
If ``name`` is
16571659
``None`` it instead initializes large Cremona database (named 'cremona'),
16581660
if available or default mini Cremona database (named 'cremona mini').
16591661
@@ -1690,10 +1692,6 @@ def CremonaDatabase(name=None, mini=None, set_global=None):
16901692
...
16911693
ValueError: the full Cremona database is not available; consider using the mini Cremona database by setting mini=True
16921694
"""
1693-
if set_global is not None:
1694-
from sage.misc.superseded import deprecation
1695-
deprecation(25825, "the set_global argument for CremonaDatabase is deprecated and ignored")
1696-
16971695
if name is None:
16981696
if mini is None:
16991697
if DatabaseCremona().is_present():

0 commit comments

Comments
 (0)