summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/abc.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-08-10 21:41:23 (GMT)
committerBrett Cannon <brett@python.org>2012-08-10 21:41:23 (GMT)
commitf410ce8c0989ef14f0f935e256d82e96f5e0602b (patch)
treec27335efcfa4954c4e583c8dcae29eaae9541983 /Lib/importlib/abc.py
parente9175bd0af440c92364466b22267a93890b44015 (diff)
downloadcpython-f410ce8c0989ef14f0f935e256d82e96f5e0602b.zip
cpython-f410ce8c0989ef14f0f935e256d82e96f5e0602b.tar.gz
cpython-f410ce8c0989ef14f0f935e256d82e96f5e0602b.tar.bz2
Issue #15502: Refactor some code.
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r--Lib/importlib/abc.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index cd687e8..387567a 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -78,10 +78,7 @@ class PathEntryFinder(Finder):
"""
raise NotImplementedError
- def find_module(self, fullname):
- """Compatibility function which is the equivalent of
- self.find_loader(fullname)[0]."""
- return self.find_loader(fullname)[0]
+ find_module = _bootstrap._find_module_shim
def invalidate_caches(self):
"""An optional method for clearing the finder's cache, if any.