summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-11-01 14:37:57 (GMT)
committerBrett Cannon <brett@python.org>2013-11-01 14:37:57 (GMT)
commitf6901c8baad21cee69832bf07c76782cd80983c8 (patch)
treea1f133c280109a6e48e6f140d4443f99bcb44315 /Lib
parent2be28a698490b507ac1b903d0a09d21703580f55 (diff)
downloadcpython-f6901c8baad21cee69832bf07c76782cd80983c8.zip
cpython-f6901c8baad21cee69832bf07c76782cd80983c8.tar.gz
cpython-f6901c8baad21cee69832bf07c76782cd80983c8.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index a06a02f..a61e951 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1375,7 +1375,7 @@ class FileFinder:
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()