#13933 refine patch using 'new' builtin

This commit is contained in:
Terry Jan Reedy 2012-02-05 14:30:43 -05:00
parent d15c5a869d
commit d76c1bf599
1 changed files with 2 additions and 4 deletions

View File

@ -190,8 +190,7 @@ class AutoComplete:
bigl = eval("dir()", namespace)
bigl.sort()
if "__all__" in bigl:
smalll = list(eval("__all__", namespace))
smalll.sort()
smalll = sorted(eval("__all__", namespace))
else:
smalll = [s for s in bigl if s[:1] != '_']
else:
@ -200,8 +199,7 @@ class AutoComplete:
bigl = dir(entity)
bigl.sort()
if "__all__" in bigl:
smalll = list(entity.__all__)
smalll.sort()
smalll = sorted(entity.__all__)
else:
smalll = [s for s in bigl if s[:1] != '_']
except: