diff Lib/importlib/_bootstrap.py @ 86823:17d730d37b2f

Issue #19410: Put back in special-casing of '' for importlib.machinery.FileFinder. While originally moved to stop special-casing '' as PathFinder farther up the typical call chain now uses the cwd in the instance of '', it was deemed an unnecessary risk to breaking subclasses of FileFinder to take the special-casing out.
author Brett Cannon <brett@python.org>
date Fri, 01 Nov 2013 10:37:57 -0400
parents 88c3a1a3c2ff
children e071977772bf
line wrap: on
line diff
--- a/Lib/importlib/_bootstrap.py	Fri Nov 01 10:25:13 2013 -0400
+++ b/Lib/importlib/_bootstrap.py	Fri Nov 01 10:37:57 2013 -0400
@@ -1375,7 +1375,7 @@
             loaders.extend((suffix, loader) for suffix in suffixes)
         self._loaders = loaders
         # Base (directory) path
-        self.path = path
+        self.path = path or '.'
         self._path_mtime = -1
         self._path_cache = set()
         self._relaxed_path_cache = set()