[Python-3000-checkins] r56882 - python/branches/py3k/Lib/idlelib/AutoComplete.py
kurt.kaiser
python-3000-checkins at python.org
Fri Aug 10 04:41:22 CEST 2007
Author: kurt.kaiser
Date: Fri Aug 10 04:41:21 2007
New Revision: 56882
Modified:
python/branches/py3k/Lib/idlelib/AutoComplete.py
Log:
Fix filter() issues
Modified: python/branches/py3k/Lib/idlelib/AutoComplete.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/AutoComplete.py (original)
+++ python/branches/py3k/Lib/idlelib/AutoComplete.py Fri Aug 10 04:41:21 2007
@@ -189,7 +189,7 @@
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 @@
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 @@
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 [], []
More information about the Python-3000-checkins
mailing list