From: Alexandre Vassalotti Date: Sun, 27 Jan 2008 16:16:19 +0000 (+0000) Subject: Fix build error. X-Git-Tag: v3.0a3~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06b1ab8ed0400a868c78a33f1e8697519eea6a18;p=thirdparty%2FPython%2Fcpython.git Fix build error. Use a list comprehension instead of filter(), since filter() needs the itertools module which isn't available at build time. --- diff --git a/Lib/glob.py b/Lib/glob.py index 0e2bc1e7342a..cd6c3024ca42 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):