]> granicus.if.org Git - python/commitdiff
Issue 11020: command-line pyclbr broken due to missing 2-to-3 conversion.
authorRaymond Hettinger <python@rcn.com>
Thu, 27 Jan 2011 00:12:08 +0000 (00:12 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 27 Jan 2011 00:12:08 +0000 (00:12 +0000)
Lib/pyclbr.py
Misc/NEWS

index c87ec668467483d694b1fd711a513a0ba17eecd0..52cbdd53ab3d106ec53496079c8fd924526f4bc6 100644 (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):
index b2982de8dc3697e8b2453401f2be31802b2f21bf..bfe7991ff065247973b845c6db217f9f1a895096 100644 (file)
--- 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.