Mercurial > cpython-lru_cache-weakref
diff Lib/importlib/abc.py @ 78489:e7a67f1bf604
Issue #15502: Refactor some code.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Fri, 10 Aug 2012 17:41:23 -0400 |
| parents | 0a75ce232f56 |
| children | 832579dbafd6 48228fb874c1 |
line wrap: on
line diff
--- a/Lib/importlib/abc.py Fri Aug 10 13:53:45 2012 -0700 +++ b/Lib/importlib/abc.py Fri Aug 10 17:41:23 2012 -0400 @@ -78,10 +78,7 @@ """ 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.
