]> granicus.if.org Git - python/commitdiff
Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 20 Jul 2010 19:55:18 +0000 (19:55 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Tue, 20 Jul 2010 19:55:18 +0000 (19:55 +0000)
Bendersky for the patch.

Lib/trace.py
Misc/ACKS
Misc/NEWS

index 9d91fe8de14cfd79e79c747f09a8e608daf30b18..19fdbaa6a453914b56421b1caee94cec23d52b0e 100644 (file)
@@ -257,7 +257,8 @@ class CoverageResults:
         if self.calledfuncs:
             print()
             print("functions called:")
-            for filename, modulename, funcname in sorted(calls.keys()):
+            calls = self.calledfuncs.keys()
+            for filename, modulename, funcname in sorted(calls):
                 print(("filename: %s, modulename: %s, funcname: %s"
                        % (filename, modulename, funcname)))
 
index 282378949f562196034976bfe3082e65adec2142..44b813634279084a6598a82c4647f02e2d553131 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -63,6 +63,7 @@ Reimer Behrends
 Ben Bell
 Thomas Bellman
 Alexander Belopolsky
+Eli Bendersky
 Andrew Bennetts
 Andy Bensky
 Michel Van den Bergh
index e9dbc9999682745b752465f6f5284dc21b0c2a4d..ebca7744a50e244d1ec9bcab6d7aafd0b50dd27c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -473,6 +473,9 @@ C-API
 Library
 -------
 
+- Issue #9282: Fixed --listfuncs option of trace.py.  Thanks Eli
+  Bendersky for the patch.
+
 - Issue #3704: http.cookiejar was not properly handling URLs with a / in the
   parameters.