diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-01-27 16:16:19 +0000 |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-01-27 16:16:19 +0000 |
commit | c577f3fcd3d1a7e9fe5cde821a417fc6dbd7821a (patch) | |
tree | e727049c8ac6a3758a9d4191778866df55f64a89 /Lib/glob.py | |
parent | 11b642e3458a8d879ab70122740ef0292e0e002e (diff) | |
download | cpython-c577f3fcd3d1a7e9fe5cde821a417fc6dbd7821a.tar.gz |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py index 0e2bc1e734..cd6c3024ca 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): |