summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2013-10-03 21:03:29 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2013-10-03 21:03:29 (GMT)
commit5c4b4c530f19436112518bd5c27b22d592015b3e (patch)
tree63424c4fe49df46c767681be692995d445060d65 /Lib/importlib
parent48b42ecd0f95e837eabd1177e43b7abddeca825e (diff)
downloadcpython-5c4b4c530f19436112518bd5c27b22d592015b3e.zip
cpython-5c4b4c530f19436112518bd5c27b22d592015b3e.tar.gz
cpython-5c4b4c530f19436112518bd5c27b22d592015b3e.tar.bz2
[issue19152] Revert 832579dbafd6.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py5
-rw-r--r--Lib/importlib/abc.py2
2 files changed, 0 insertions, 7 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 83c51f8..e40ec92 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1153,11 +1153,6 @@ class ExtensionFileLoader:
"""Return None as extension modules have no source code."""
return None
- @_check_name
- def get_filename(self, fullname):
- """Return the path to the source file as found by the finder."""
- return self.path
-
class _NamespacePath:
"""Represents a namespace package's path. It uses the module name
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index 438a01d..387567a 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -168,8 +168,6 @@ class ExecutionLoader(InspectLoader):
set to."""
raise NotImplementedError
-_register(machinery.ExtensionFileLoader)
-
class FileLoader(_bootstrap.FileLoader, ResourceLoader, ExecutionLoader):