Skip to content

Commit 06b1ab8

Browse files
committed
Fix build error.
Use a list comprehension instead of filter(), since filter() needs the itertools module which isn't available at build time.
1 parent 061ce7f commit 06b1ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/glob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def glob1(dirname, pattern):
5757
except os.error:
5858
return []
5959
if pattern[0] != '.':
60-
names = filter(lambda x: x[0] != '.', names)
60+
names = [x for x in names if x[0] != '.']
6161
return fnmatch.filter(names, pattern)
6262

6363
def glob0(dirname, basename):

0 commit comments

Comments
 (0)