glob('anything*/') would fail because isdir is in os.path, not os.

This commit is contained in:
Neal Norwitz 2006-04-09 03:35:43 +00:00
parent e0bb597d03
commit a31bf18c48
3 changed files with 11 additions and 1 deletions

View file

@ -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)):