summaryrefslogtreecommitdiffstats
path: root/Lib/glob.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-09 03:35:43 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-09 03:35:43 (GMT)
commita31bf18c48654640b7020e8900928f9db862a1a5 (patch)
treed2ccc08a0b2ef3fbad6b983a9dc434d37cb14844 /Lib/glob.py
parente0bb597d03bc97e1b201e27adb983aabf96e137b (diff)
downloadcpython-a31bf18c48654640b7020e8900928f9db862a1a5.zip
cpython-a31bf18c48654640b7020e8900928f9db862a1a5.tar.gz
cpython-a31bf18c48654640b7020e8900928f9db862a1a5.tar.bz2
glob('anything*/') would fail because isdir is in os.path, not os.
Diffstat (limited to 'Lib/glob.py')
-rw-r--r--Lib/glob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py
index ecc6d25..95656cc 100644
--- a/Lib/glob.py
+++ b/Lib/glob.py
@@ -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)):