mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add tests for using sys.path_hooks by importlib.machinery.PathFinder.
This commit is contained in:
parent
5874ef16ed
commit
1f9bcd38a9
2 changed files with 11 additions and 3 deletions
|
@ -601,7 +601,7 @@ class PathFinder:
|
|||
@classmethod
|
||||
def _implicit_hooks(cls):
|
||||
"""Return a list of the implicit path hooks."""
|
||||
return [self._default_hook, imp.NullImporter]
|
||||
return [cls._default_hook, imp.NullImporter]
|
||||
|
||||
@classmethod
|
||||
def _path_hooks(cls, path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue