diff options
Diffstat (limited to 'sagemath-jedi-0.16.patch')
-rw-r--r-- | sagemath-jedi-0.16.patch | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/sagemath-jedi-0.16.patch b/sagemath-jedi-0.16.patch index 27769bdb8cfd..477091a1c007 100644 --- a/sagemath-jedi-0.16.patch +++ b/sagemath-jedi-0.16.patch @@ -1,6 +1,6 @@ --- a/src/sage/all.py +++ b/src/sage/all.py -@@ -324,6 +324,9 @@ warnings.filterwarnings('ignore', category=DeprecationWarning, +@@ -99,6 +99,9 @@ warnings.filterwarnings('ignore', category=DeprecationWarning, # However, be sure to keep OUR deprecation warnings warnings.filterwarnings('default', category=DeprecationWarning, message=r'[\s\S]*See https\?://trac\.sagemath\.org/[0-9]* for details.') @@ -10,4 +10,21 @@ # Python 3.8 deprecation warnings warnings.filterwarnings('ignore', category=DeprecationWarning, message='.*PY_SSIZE_T_CLEAN.*') - +diff --git a/src/sage/__init__.py b/src/sage/__init__.py +index c5ebb92..e2ae5b8 100644 +--- a/src/sage/__init__.py ++++ b/src/sage/__init__.py +@@ -56,13 +56,3 @@ def isfunction(obj): + + import inspect + inspect.isfunction = isfunction +- +- +-# Monkey-patch ExtensionFileLoader to allow IPython to find the sources +-# of Cython files. See https://trac.sagemath.org/ticket/24681 +-try: +- from importlib.machinery import ExtensionFileLoader +-except ImportError: +- pass # Python 2 +-else: +- del ExtensionFileLoader.get_source |