Skip to content

Commit

Permalink
sagemathgh-39463: remove deprecated stuff in cremona_database
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#39463
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
  • Loading branch information
Release Manager committed Feb 9, 2025
2 parents 31afa0b + 4fa4d53 commit 842ae22
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/sage/databases/cremona.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def is_optimal_id(id):
return id[-1] == '1' and not id[-2].isdigit()


def cremona_letter_code(n):
def cremona_letter_code(n) -> str:
"""
Return the Cremona letter code corresponding to an integer.
Expand Down Expand Up @@ -252,7 +252,7 @@ def cremona_letter_code(n):
return s


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


def CremonaDatabase(name=None, mini=None, set_global=None):
def CremonaDatabase(name=None, mini=None):
"""
Initialize the Cremona database with name ``name``. If ``name`` is
Initialize the Cremona database with name ``name``.
If ``name`` is
``None`` it instead initializes large Cremona database (named 'cremona'),
if available or default mini Cremona database (named 'cremona mini').
Expand Down Expand Up @@ -1690,10 +1692,6 @@ def CremonaDatabase(name=None, mini=None, set_global=None):
...
ValueError: the full Cremona database is not available; consider using the mini Cremona database by setting mini=True
"""
if set_global is not None:
from sage.misc.superseded import deprecation
deprecation(25825, "the set_global argument for CremonaDatabase is deprecated and ignored")

if name is None:
if mini is None:
if DatabaseCremona().is_present():
Expand Down

0 comments on commit 842ae22

Please sign in to comment.