Issue #9282: Fixed --listfuncs option of trace.py.  Thanks Eli
Bendersky for the patch.
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 @@
         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 2823789..44b8136 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -63,6 +63,7 @@
 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 e9dbc99..ebca774 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -473,6 +473,9 @@
 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.