#13933 refine patch using 'new' builtin
This commit is contained in:
parent
d15c5a869d
commit
d76c1bf599
|
@ -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:
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue