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))) diff --git a/Misc/ACKS b/Misc/ACKS index 93af0165d2f..d25eb3a04f6 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -60,6 +60,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 6a273d0a8e2..a2fa664751d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -78,6 +78,9 @@ C-API Library ------- +- Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli + Bendersky for the patch. + - Issue #1555570: email no longer inserts extra blank lines when a \r\n combo crosses an 8192 byte boundary.