Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage.misc.sageinspect: Remove deprecated loadable_module_extension #37867

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions src/sage/misc/sageinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,28 +167,6 @@ def is_function_or_cython_function(obj):
return hasattr(type(obj), "__code__")


def loadable_module_extension():
r"""
Return the filename extension of loadable modules, including the dot.

This function is deprecated.

EXAMPLES::

sage: from sage.misc.sageinspect import loadable_module_extension
sage: from importlib.machinery import EXTENSION_SUFFIXES
sage: loadable_module_extension() in EXTENSION_SUFFIXES
doctest:warning...
DeprecationWarning: loadable_module_extension is deprecated; use importlib.machinery.EXTENSION_SUFFIXES instead
See https://github.com/sagemath/sage/issues/33636 for details.
True
"""
from sage.misc.superseded import deprecation
deprecation(33636, "loadable_module_extension is deprecated; use importlib.machinery.EXTENSION_SUFFIXES instead")
# Return the full platform-specific extension module suffix
return import_machinery.EXTENSION_SUFFIXES[0]


def isclassinstance(obj):
r"""
Check if argument is instance of non built-in class
Expand Down
Loading