]> granicus.if.org Git - python/commit
Issue #14605: Make explicit the entries on sys.path_hooks that used to
authorBrett Cannon <brett@python.org>
Thu, 26 Apr 2012 00:54:04 +0000 (20:54 -0400)
committerBrett Cannon <brett@python.org>
Thu, 26 Apr 2012 00:54:04 +0000 (20:54 -0400)
commite0d88a173c5ccc346b8d7c6e805f0e49b4ea92f7
tree476528c79622c96645adf554536eeeba0c4ee0d8
parent8f79dd5d7cc3eb19d568f8e95f04ee33f1177d92
Issue #14605: Make explicit the entries on sys.path_hooks that used to
be implicit.

Added a warning for when sys.path_hooks is found to be empty. Also
changed the meaning of None in sys.path_importer_cache to represent
trying sys.path_hooks again (an interpretation of previous semantics).
Also added a warning for when None was found.

The long-term goal is for None in sys.path_importer_cache to represent
the same as imp.NullImporter: no finder found for that sys.path entry.
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test_fromlist.py
Lib/importlib/test/import_/test_path.py
Lib/pkgutil.py
Lib/runpy.py
Lib/test/test_cmd_line_script.py
Misc/NEWS
Python/importlib.h
Python/pythonrun.c