diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-02-05 23:36:02 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-02-05 23:36:02 (GMT) |
commit | 1f9bcd38a9868b0d320681c603d5b4aa20ec54fe (patch) | |
tree | d2d186f128500e255a54ccda482881230ebc842c /Lib/importlib/_bootstrap.py | |
parent | 5874ef16edfa34cf6ff184e56ada8b78687b689f (diff) | |
download | cpython-1f9bcd38a9868b0d320681c603d5b4aa20ec54fe.zip cpython-1f9bcd38a9868b0d320681c603d5b4aa20ec54fe.tar.gz cpython-1f9bcd38a9868b0d320681c603d5b4aa20ec54fe.tar.bz2 |
Add tests for using sys.path_hooks by importlib.machinery.PathFinder.
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index 849dabb..8eff65c 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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): |