mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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):
|
||||
with suppress(Exception):
|
||||
return os.listdir(self.root or '')
|
||||
return os.listdir(self.root or '.')
|
||||
with suppress(Exception):
|
||||
return self.zip_children()
|
||||
return []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue