Commit d8d2c984 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Merge with 3.2

#13933 refine patch using 'new' builtin
parents 7372b06c a77aa698
...@@ -190,8 +190,7 @@ class AutoComplete: ...@@ -190,8 +190,7 @@ class AutoComplete:
bigl = eval("dir()", namespace) bigl = eval("dir()", namespace)
bigl.sort() bigl.sort()
if "__all__" in bigl: if "__all__" in bigl:
smalll = list(eval("__all__", namespace)) smalll = sorted(eval("__all__", namespace))
smalll.sort()
else: else:
smalll = [s for s in bigl if s[:1] != '_'] smalll = [s for s in bigl if s[:1] != '_']
else: else:
...@@ -200,8 +199,7 @@ class AutoComplete: ...@@ -200,8 +199,7 @@ class AutoComplete:
bigl = dir(entity) bigl = dir(entity)
bigl.sort() bigl.sort()
if "__all__" in bigl: if "__all__" in bigl:
smalll = list(entity.__all__) smalll = sorted(entity.__all__)
smalll.sort()
else: else:
smalll = [s for s in bigl if s[:1] != '_'] smalll = [s for s in bigl if s[:1] != '_']
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment