[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5eb62bdcb1a by Serhiy Storchaka in branch '3.4': Issue #22924: Scripts gprof2html.py and highlight.py now use html.escape() https://hg.python.org/cpython/rev/f5eb62bdcb1a New changeset 8c1d1e861081 by Serhiy Storchaka in branch 'default': Issue #22

[issue22924] Use of deprecated cgi.escape

2014-11-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: highlight.py contains a code to support Python 2: try: import builtins except ImportError: import __builtin__ as builtins If Python 2 should be supported, there is no the html module in Python 2. Otherwise this workaround can be dropped. --

[issue22924] Use of deprecated cgi.escape

2014-11-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this looks right to you, please go ahead an apply. -- assignee: rhettinger -> serhiy.storchaka keywords: +patch Added file: http://bugs.python.org/file37294/cgi2html.diff ___ Python tracker

[issue22924] Use of deprecated cgi.escape

2014-11-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Deprecated cgi.escape() is used in Tools/scripts/gprof2html.py and Tools/scripts/highlight.py. It should be replaced by html.escape(). Unfortunately the html module clashes with the html parameter in highlight.py so I left this issue for Reymond.