summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-20 19:55:18 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-20 19:55:18 (GMT)
commit533a167a713be4a30b92583636cd2323f4c8c3aa (patch)
treeaee74cf80722fc5c72abe4479220654fc8cdb217 /Lib
parentd21886cea4d661ba81b577d4bb0792e4ce0e575a (diff)
downloadcpython-533a167a713be4a30b92583636cd2323f4c8c3aa.zip
cpython-533a167a713be4a30b92583636cd2323f4c8c3aa.tar.gz
cpython-533a167a713be4a30b92583636cd2323f4c8c3aa.tar.bz2
Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
Bendersky for the patch.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/trace.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 9d91fe8..19fdbaa 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -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)))