Issue #15502: Refactor some code.

This commit is contained in:
Brett Cannon 2012-08-10 17:41:23 -04:00
parent e9175bd0af
commit f410ce8c09
3 changed files with 4205 additions and 4202 deletions

View file

@ -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.