diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-20 19:55:18 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-07-20 19:55:18 (GMT) |
commit | 533a167a713be4a30b92583636cd2323f4c8c3aa (patch) | |
tree | aee74cf80722fc5c72abe4479220654fc8cdb217 /Lib | |
parent | d21886cea4d661ba81b577d4bb0792e4ce0e575a (diff) | |
download | cpython-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.py | 3 |
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))) |