diff --git a/Lib/pyclbr.py b/Lib/pyclbr.py index c87ec668467..52cbdd53ab3 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 b2982de8dc3..bfe7991ff06 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.