Commit 06b1ab8e authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Fix build error.

Use a list comprehension instead of filter(), since filter() needs the
itertools module which isn't available at build time.
parent 061ce7fd
...@@ -57,7 +57,7 @@ def glob1(dirname, pattern): ...@@ -57,7 +57,7 @@ def glob1(dirname, pattern):
except os.error: except os.error:
return [] return []
if pattern[0] != '.': if pattern[0] != '.':
names = filter(lambda x: x[0] != '.', names) names = [x for x in names if x[0] != '.']
return fnmatch.filter(names, pattern) return fnmatch.filter(names, pattern)
def glob0(dirname, basename): def glob0(dirname, basename):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment