diff --git a/Lib/trace.py b/Lib/trace.py index 9d91fe8de14..19fdbaa6a45 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))) diff --git a/Misc/ACKS b/Misc/ACKS index 282378949f5..44b81363427 100644 --- 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 diff --git a/Misc/NEWS b/Misc/NEWS index e9dbc999968..ebca7744a50 100644 --- 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.