Issue #11020: Command-line pyclbr was broken because of missing 2-to-3

conversion.

(Patch reviewed by David Murray.)
This commit is contained in:
Raymond Hettinger 2011-01-27 00:06:54 +00:00
parent 528d9f6ead
commit 8b5eb2f813
2 changed files with 4 additions and 1 deletions

View File

@ -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):

View File

@ -16,6 +16,9 @@ Core and Builtins
Library
-------
- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
conversion.
- Issue #11019: Fixed BytesGenerator so that it correctly handles a Message
with a None body.