From 8b5eb2f813b8e22e97308c18a61f1824f962604c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 27 Jan 2011 00:06:54 +0000 Subject: Issue #11020: Command-line pyclbr was broken because of missing 2-to-3 conversion. (Patch reviewed by David Murray.) --- Lib/pyclbr.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py index c87ec66..52cbdd5 100644 --- a/Lib/pyclbr.py +++ b/Lib/pyclbr.py @@ -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): diff --git a/Misc/NEWS b/Misc/NEWS index 28803f8..b05b93c 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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. -- cgit v0.12