Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 533a167

Browse files
committed
Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
Bendersky for the patch.
1 parent d21886c commit 533a167

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lib/trace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def write_results(self, show_missing=True, summary=False, coverdir=None):
257257
if self.calledfuncs:
258258
print()
259259
print("functions called:")
260-
for filename, modulename, funcname in sorted(calls.keys()):
260+
calls = self.calledfuncs.keys()
261+
for filename, modulename, funcname in sorted(calls):
261262
print(("filename: %s, modulename: %s, funcname: %s"
262263
% (filename, modulename, funcname)))
263264

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Reimer Behrends
6363
Ben Bell
6464
Thomas Bellman
6565
Alexander Belopolsky
66+
Eli Bendersky
6667
Andrew Bennetts
6768
Andy Bensky
6869
Michel Van den Bergh

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ C-API
473473
Library
474474
-------
475475

476+
- Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli
477+
Bendersky for the patch.
478+
476479
- Issue #3704: http.cookiejar was not properly handling URLs with a / in the
477480
parameters.
478481

0 commit comments

Comments
 (0)