Skip to content

Commit

Permalink
sagemathgh-38099: Remove deprecated global imports
Browse files Browse the repository at this point in the history
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

All deprecated 2019-2022.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38099
Reported by: Matthias Köppe
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager committed May 31, 2024
2 parents da885cf + 33eab46 commit bbce0cd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
15 changes: 0 additions & 15 deletions src/sage/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
from sage.functions.all import *
from sage.calculus.all import *

lazy_import('sage.tests', 'all', as_='tests', deprecation=27337)
from sage.cpython.all import *

from sage.crypto.all import *
Expand Down Expand Up @@ -190,15 +189,6 @@
copying = license
copyright = license

def quit_sage(verbose=True):
"""
Does nothing. Code that needs cleanup should register its own
handler using the atexit module.
"""
from sage.misc.superseded import deprecation
deprecation(8784, 'quit_sage is deprecated and now does nothing; please simply delete it')


from sage.misc.persist import register_unpickle_override
register_unpickle_override('sage.categories.category', 'Sets', Sets)
register_unpickle_override('sage.categories.category_types', 'HeckeModules', HeckeModules)
Expand All @@ -219,11 +209,6 @@ def quit_sage(verbose=True):
# sys.settrace(poison_currRing)


# Deprecated leftover of monkey-patching inspect.isfunction() to support Cython functions.
lazy_import('sage.misc.sageinspect', 'is_function_or_cython_function',
as_='isfunction', namespace=sage.__dict__, deprecation=32479)


# Set a new random number seed as the very last thing
# (so that printing initial_seed() and using that seed
# in set_random_seed() will result in the same sequence you got at
Expand Down
2 changes: 0 additions & 2 deletions src/sage/arith/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
dedekind_sum,
prime_factors, prime_range, valuation)

lazy_import("sage.arith.misc", ("Sigma", "Moebius", "Euler_Phi"), deprecation=30322)

from sage.arith.functions import lcm
LCM = lcm

Expand Down
2 changes: 0 additions & 2 deletions src/sage/manifolds/all.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from sage.misc.lazy_import import lazy_import
lazy_import('sage.manifolds.manifold', 'Manifold')
lazy_import('sage.manifolds.differentiable.examples.real_line', ('OpenInterval', 'RealLine'),
deprecation=31881)
lazy_import('sage.manifolds.differentiable.examples.euclidean', 'EuclideanSpace')
lazy_import('sage.manifolds', 'catalog', 'manifolds')
del lazy_import
2 changes: 0 additions & 2 deletions src/sage/misc/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
SAGE_DB,
newton_method_sizes, compose,
nest)
lazy_import('sage.misc.misc', 'union',
deprecation=32096)

from sage.misc.banner import version

Expand Down
7 changes: 0 additions & 7 deletions src/sage/modular/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@

from sage.modular.cusps import Cusp, Cusps

lazy_import('sage.modular.dims', ('dimension_cusp_forms',
'dimension_new_cusp_forms',
'dimension_eis',
'dimension_modular_forms',
'sturm_bound'),
deprecation=(32647, 'removed from main namespace'))

from sage.modular.etaproducts import (EtaGroup, EtaProduct, EtaGroupElement,
AllCusps, CuspFamily)

Expand Down

0 comments on commit bbce0cd

Please sign in to comment.