diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-09 23:49:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 23:49:43 (GMT) |
commit | 6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c (patch) | |
tree | ec9e6caffadeef7356351fefe8e484a6ee63775a /Lib/importlib | |
parent | 912a4ccc3a523e2990cc501393adfc661614c73a (diff) | |
download | cpython-6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c.zip cpython-6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c.tar.gz cpython-6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c.tar.bz2 |
[bpo-45765] Fix distribution discovery on empty path. (#29487)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/metadata/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py index f5172ee..b3e8fb0 100644 --- a/Lib/importlib/metadata/__init__.py +++ b/Lib/importlib/metadata/__init__.py @@ -748,7 +748,7 @@ class FastPath: def children(self): with suppress(Exception): - return os.listdir(self.root or '') + return os.listdir(self.root or '.') with suppress(Exception): return self.zip_children() return [] |