[issue9282] Bug in --listfuncs option of trace.py

Alexander Belopolsky report at bugs.python.org
Tue Jul 20 21:38:06 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

This is clearly an artifact of porting to 3.x.  In 2.x the code was


            calls = self.calledfuncs.keys()
            calls.sort()
            for filename, modulename, funcname in calls:

which was translated to

           for filename, modulename, funcname in sorted(calls.keys()):

missing the calls assignment.  I am going to commit this patch.

----------
assignee:  -> belopolsky
nosy: +belopolsky
resolution:  -> accepted
superseder:  -> The trace module lacks unit tests

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9282>
_______________________________________


More information about the Python-bugs-list mailing list