summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2007-08-10 02:41:21 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2007-08-10 02:41:21 (GMT)
commitf2335a9da0dda5d4b75773405288eb348cc7fad5 (patch)
tree29aeece5dedc9f459451e6b9e1c1f54bffe48780 /Lib
parent283f3ffc246c53d6e265103e5bfb04ee08845d28 (diff)
downloadcpython-f2335a9da0dda5d4b75773405288eb348cc7fad5.zip
cpython-f2335a9da0dda5d4b75773405288eb348cc7fad5.tar.gz
cpython-f2335a9da0dda5d4b75773405288eb348cc7fad5.tar.bz2
Fix filter() issues
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/AutoComplete.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
index 72f221c..1bc3301 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -189,7 +189,7 @@ class AutoComplete:
smalll = eval("__all__", namespace)
smalll.sort()
else:
- smalll = filter(lambda s: s[:1] != '_', bigl)
+ smalll = [s for s in bigl if s[:1] != '_']
else:
try:
entity = self.get_entity(what)
@@ -199,7 +199,7 @@ class AutoComplete:
smalll = entity.__all__
smalll.sort()
else:
- smalll = filter(lambda s: s[:1] != '_', bigl)
+ smalll = [s for s in bigl if s[:1] != '_']
except:
return [], []
@@ -210,7 +210,7 @@ class AutoComplete:
expandedpath = os.path.expanduser(what)
bigl = os.listdir(expandedpath)
bigl.sort()
- smalll = filter(lambda s: s[:1] != '.', bigl)
+ smalll = [s for s in bigl if s[:1] != '.']
except OSError:
return [], []