Skip to content

Commit 56e555d

Browse files
author
Release Manager
committed
gh-37867: `sage.misc.sageinspect`: Remove deprecated `loadable_module_extension` <!-- ^ 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 #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 #12345". --> - Deprecated in #33636 (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, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #37867 Reported by: Matthias Köppe Reviewer(s): Michael Orlitzky
2 parents ee5f606 + def2220 commit 56e555d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/sage/misc/sageinspect.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -167,28 +167,6 @@ def is_function_or_cython_function(obj):
167167
return hasattr(type(obj), "__code__")
168168

169169

170-
def loadable_module_extension():
171-
r"""
172-
Return the filename extension of loadable modules, including the dot.
173-
174-
This function is deprecated.
175-
176-
EXAMPLES::
177-
178-
sage: from sage.misc.sageinspect import loadable_module_extension
179-
sage: from importlib.machinery import EXTENSION_SUFFIXES
180-
sage: loadable_module_extension() in EXTENSION_SUFFIXES
181-
doctest:warning...
182-
DeprecationWarning: loadable_module_extension is deprecated; use importlib.machinery.EXTENSION_SUFFIXES instead
183-
See https://github.com/sagemath/sage/issues/33636 for details.
184-
True
185-
"""
186-
from sage.misc.superseded import deprecation
187-
deprecation(33636, "loadable_module_extension is deprecated; use importlib.machinery.EXTENSION_SUFFIXES instead")
188-
# Return the full platform-specific extension module suffix
189-
return import_machinery.EXTENSION_SUFFIXES[0]
190-
191-
192170
def isclassinstance(obj):
193171
r"""
194172
Check if argument is instance of non built-in class

0 commit comments

Comments
 (0)