From 13aeb3628eab5bbb02acdf86c1dd1a6e1ee840c7 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Tue, 20 Jul 2010 20:13:45 +0000 Subject: Merged revisions 82997 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82997 | alexander.belopolsky | 2010-07-20 15:55:18 -0400 (Tue, 20 Jul 2010) | 3 lines Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli Bendersky for the patch. ........ --- Lib/trace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/trace.py') diff --git a/Lib/trace.py b/Lib/trace.py index e6316b69191..c0cca9d0607 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))) -- cgit v1.2.3