mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #13933: merge
This commit is contained in:
commit
08d052ac5a
2 changed files with 5 additions and 2 deletions
|
@ -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] != '_']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue