summaryrefslogtreecommitdiffstats
path: root/Lib/glob.py
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-01-27 16:16:19 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-01-27 16:16:19 (GMT)
commit06b1ab8ed0400a868c78a33f1e8697519eea6a18 (patch)
tree7c4d6cd80166d40ea8ca26538f07890e3e1b02b4 /Lib/glob.py
parent061ce7fda739a2711245cb121ef410ddf70a784c (diff)
downloadcpython-06b1ab8ed0400a868c78a33f1e8697519eea6a18.zip
cpython-06b1ab8ed0400a868c78a33f1e8697519eea6a18.tar.gz
cpython-06b1ab8ed0400a868c78a33f1e8697519eea6a18.tar.bz2
Fix build error.
Use a list comprehension instead of filter(), since filter() needs the itertools module which isn't available at build time.
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 0e2bc1e..cd6c302 100644
--- a/Lib/glob.py
+++ b/Lib/glob.py
@@ -57,7 +57,7 @@ def glob1(dirname, pattern):
except os.error:
return []
if pattern[0] != '.':
- names = filter(lambda x: x[0] != '.', names)
+ names = [x for x in names if x[0] != '.']
return fnmatch.filter(names, pattern)
def glob0(dirname, basename):