summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-01-07 03:38:16 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2014-01-07 03:38:16 (GMT)
commit3192eac6cfa658cb66e42bea4c7c59cef85fd6fc (patch)
tree2134efe978588d84f05e5f2fb3e9fefed9f05c5e /Lib/importlib
parent3845521b4b7b61d49181c611ee427042152671f2 (diff)
downloadcpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.zip
cpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.tar.gz
cpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.tar.bz2
Remove dead PEP 451 code.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 864e546..98ecc66 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1183,15 +1183,6 @@ class _SpecMethods:
pass
return module
- # XXX If we don't end up using this for pythonrun.c/runpy, we should
- # get rid of it.
- def _load_existing(self, module):
- """Exec the spec'ed module into an existing module's namespace."""
- # For use by runpy.
- with _installed_safely(module):
- loaded = self.exec(module)
- return loaded
-
def _load_unlocked(self):
# A helper for direct use by the import system.
if self.spec.loader is not None:
@@ -1389,7 +1380,6 @@ class WindowsRegistryFinder:
@classmethod
def find_spec(cls, fullname, path=None, target=None):
- # XXX untested! Need a Windows person to write tests (otherwise mock out appropriately)
filepath = cls._search_registry(fullname)
if filepath is None:
return None