diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 16:03:01 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 16:03:01 +0100 |
commit | e014da98a3c014ab500a0fad88a03951ea9e039a (patch) | |
tree | bc2c29474417aa2374f08325299f2c2830dd4185 /Lib/glob.py | |
parent | c86ef2cd259f9ece8339e5e7adcd313fc4b7de57 (diff) | |
download | cpython-e014da98a3c014ab500a0fad88a03951ea9e039a.tar.gz |
Issue #16696: fix comparison between bytes and string. Also, improve glob tests.
Diffstat (limited to 'Lib/glob.py')
-rw-r--r-- | Lib/glob.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 7279244aa9..58888d64b5 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -63,7 +63,7 @@ def glob1(dirname, pattern): return fnmatch.filter(names, pattern) def glob0(dirname, basename): - if basename == '': + if not basename: # `os.path.split()` returns an empty basename for paths ending with a # directory separator. 'q*x/' should match only directories. if os.path.isdir(dirname): |