summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/AutoComplete.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-02-04 17:36:43 (GMT)
committerNed Deily <nad@acm.org>2012-02-04 17:36:43 (GMT)
commited3b867f330c107ed77044cffb4b28703aa17d08 (patch)
tree2b308751c263ad0a51317fb561416973841bab59 /Lib/idlelib/AutoComplete.py
parentf99f3339fdab123033ef097a918da3f0a88cf776 (diff)
downloadcpython-ed3b867f330c107ed77044cffb4b28703aa17d08.zip
cpython-ed3b867f330c107ed77044cffb4b28703aa17d08.tar.gz
cpython-ed3b867f330c107ed77044cffb4b28703aa17d08.tar.bz2
Issue #13933: IDLE auto-complete did not work with some imported
module, like hashlib. (Patch by Roger Serwy)
Diffstat (limited to 'Lib/idlelib/AutoComplete.py')
-rw-r--r--Lib/idlelib/AutoComplete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/AutoComplete.py b/Lib/idlelib/AutoComplete.py
index fa1733f..5190990 100644
--- a/Lib/idlelib/AutoComplete.py
+++ b/Lib/idlelib/AutoComplete.py
@@ -190,7 +190,7 @@ class AutoComplete:
bigl = eval("dir()", namespace)
bigl.sort()
if "__all__" in bigl:
- smalll = eval("__all__", namespace)
+ smalll = list(eval("__all__", namespace))
smalll.sort()
else:
smalll = [s for s in bigl if s[:1] != '_']
@@ -200,7 +200,7 @@ class AutoComplete:
bigl = dir(entity)
bigl.sort()
if "__all__" in bigl:
- smalll = entity.__all__
+ smalll = list(entity.__all__)
smalll.sort()
else:
smalll = [s for s in bigl if s[:1] != '_']