[issue14508] gprof2html is broken

2012-04-11 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. I don't think you ran the test though, since it didn't pass, and there was a mistake in your patch :) I had to change the test considerably, and only applied the test part on 3.3 since I used mock. -- resolution: -> fixed sta

[issue14508] gprof2html is broken

2012-04-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d603d6782db by R David Murray in branch '3.2': #14508: make gprof2html script runnable under python3 http://hg.python.org/cpython/rev/4d603d6782db New changeset 73fba223c0a5 by R David Murray in branch 'default': #14508: make gprof2html script run

[issue14508] gprof2html is broken

2012-04-06 Thread Popa Claudiu
Popa Claudiu added the comment: Hello. I've attached the new version of the patch. I used with statement in add_escapes and the test was rewritten according to David's suggestion. -- Added file: http://bugs.python.org/file25139/gprof.patch ___ Pytho

[issue14508] gprof2html is broken

2012-04-05 Thread Éric Araujo
Éric Araujo added the comment: Should also use with statements IMO. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue14508] gprof2html is broken

2012-04-05 Thread R. David Murray
R. David Murray added the comment: I'm getting 'malformed patch at line 30' when I try to apply your patch. Also, while it's not wrong, I don't think there's much point in catching the NameError and doing a fail. The second Exception clause is definitely wrong, though, we don't want other er

[issue14508] gprof2html is broken

2012-04-05 Thread Popa Claudiu
New submission from Popa Claudiu : Tools/gprof2html.py uses "file" to open a file. Also, the opened file passed to add_escapes was never closed. There's a test included in the patch. -- components: Demos and Tools files: gprof.patch keywords: patch messages: 157580 nosy: Popa.Claudiu pr