mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
glob('anything*/') would fail because isdir is in os.path, not os.
This commit is contained in:
parent
e0bb597d03
commit
a31bf18c48
3 changed files with 11 additions and 1 deletions
|
@ -60,7 +60,7 @@ def glob0(dirname, basename):
|
|||
if basename == '':
|
||||
# `os.path.split()` returns an empty basename for paths ending with a
|
||||
# directory separator. 'q*x/' should match only directories.
|
||||
if os.isdir(dirname):
|
||||
if os.path.isdir(dirname):
|
||||
return [basename]
|
||||
else:
|
||||
if os.path.lexists(os.path.join(dirname, basename)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue