summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/glob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/glob.py b/Lib/glob.py
index 0e2bc1e..cd6c302 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):