mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
[bpo-45765] Fix distribution discovery on empty path. (#29487)
This commit is contained in:
parent
912a4ccc3a
commit
6ec0dec7b7
2 changed files with 2 additions and 1 deletions
|
@ -748,7 +748,7 @@ class FastPath:
|
||||||
|
|
||||||
def children(self):
|
def children(self):
|
||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
return os.listdir(self.root or '')
|
return os.listdir(self.root or '.')
|
||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
return self.zip_children()
|
return self.zip_children()
|
||||||
return []
|
return []
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
In importlib.metadata, fix distribution discovery for an empty path.
|
Loading…
Add table
Add a link
Reference in a new issue