]> granicus.if.org Git - python/commit
Tweak the handling of the empty string in sys.path for importlib.
authorBrett Cannon <brett@python.org>
Thu, 16 Feb 2012 23:12:00 +0000 (18:12 -0500)
committerBrett Cannon <brett@python.org>
Thu, 16 Feb 2012 23:12:00 +0000 (18:12 -0500)
commitf58d45c649c1738870ac85887599850fd2bbf157
treec16b0f2c43c52dd82c5468d11747bb515fc91416
parent22e7c88057ee91ded2bd9853a6b67846c34d392f
Tweak the handling of the empty string in sys.path for importlib.
It seems better to cache the finder for the cwd under its full path
insetad of '' in case the cwd changes. Otherwise FileFinder needs to
dynamically change itself based on whether it is given '' instead of
caching a finder for every change to the cwd.
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test_path.py