Skip to content

Commit

Permalink
src/sage/misc/sageinspect.py: Deprecate loadable_module_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 23, 2022
1 parent 3516245 commit 780be6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sage/misc/sageinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,20 @@ def loadable_module_extension():
It is '.dll' on cygwin, '.so' otherwise.
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://trac.sagemath.org/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]

Expand Down

0 comments on commit 780be6a

Please sign in to comment.