mirror of
https://github.com/python/cpython
synced 2024-09-05 00:05:39 +00:00
[bpo-45765] Fix distribution discovery on empty path. (#29487)
This commit is contained in:
parent
912a4ccc3a
commit
6ec0dec7b7
|
@ -748,7 +748,7 @@ def joinpath(self, child):
|
|||
|
||||
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 []
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
In importlib.metadata, fix distribution discovery for an empty path.
|
Loading…
Reference in a new issue