Skip to content

Commit

Permalink
sagemathgh-37867: sage.misc.sageinspect: Remove deprecated `loadabl…
Browse files Browse the repository at this point in the history
…e_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 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". -->

- Deprecated in sagemath#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,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37867
Reported by: Matthias Köppe
Reviewer(s): Michael Orlitzky
  • Loading branch information
Release Manager committed May 12, 2024
2 parents ee5f606 + def2220 commit 56e555d
Showing 1 changed file with 0 additions and 22 deletions.
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

0 comments on commit 56e555d

Please sign in to comment.