From d62522ab563fa508acbacacab8c343052eb08bb6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 27 Jan 2011 00:12:08 +0000 Subject: [PATCH] Issue 11020: command-line pyclbr broken due to missing 2-to-3 conversion. --- 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 c87ec66846..52cbdd53ab 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 b2982de8dc..bfe7991ff0 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -37,6 +37,9 @@ Core and Builtins Library ------- +- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3 + conversion. + - Issue #10974: IDLE no longer crashes if its recent files list includes files with non-ASCII characters in their path names. -- 2.40.0