mirror of https://github.com/python/cpython
Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
conversion. (Patch reviewed by David Murray.)
This commit is contained in:
parent
528d9f6ead
commit
8b5eb2f813
|
@ -325,7 +325,7 @@ def _main():
|
|||
else:
|
||||
path = []
|
||||
dict = readmodule_ex(mod, path)
|
||||
objs = dict.values()
|
||||
objs = list(dict.values())
|
||||
objs.sort(key=lambda a: getattr(a, 'lineno', 0))
|
||||
for obj in objs:
|
||||
if isinstance(obj, Class):
|
||||
|
|
Loading…
Reference in New Issue