mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Issue #15502: Refactor some code.
This commit is contained in:
parent
e9175bd0af
commit
f410ce8c09
3 changed files with 4205 additions and 4202 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue