mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Fix build error.
Use a list comprehension instead of filter(), since filter() needs the itertools module which isn't available at build time.
This commit is contained in:
parent
061ce7fda7
commit
06b1ab8ed0
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue