]> granicus.if.org Git - python/commitdiff
Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
authorRaymond Hettinger <python@rcn.com>
Thu, 27 Jan 2011 00:06:54 +0000 (00:06 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 27 Jan 2011 00:06:54 +0000 (00:06 +0000)
conversion.

(Patch reviewed by David Murray.)

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 28803f8c10a4fa796732d12c98729e11ec89f65f..b05b93caa8643a80b280f2e5600670b9a66355ef 100644 (file)
--- 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.