]> granicus.if.org Git - python/commit
print_error_text() doesn't encode the filename anymore
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 7 Nov 2013 11:37:56 +0000 (12:37 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 7 Nov 2013 11:37:56 +0000 (12:37 +0100)
commitefa7a0e155e508f21dd7ace708b311066637538f
tree2f6153a87d447a9aabd6a089fa98a1888178d818
parent0b69fbc6420115ce11e7f18249280a2c6d9a87ce
print_error_text() doesn't encode the filename anymore

Use aslo PyUnicode_FromFormat() to format the line so only one call to
PyFile_WriteObject() is needed. tb_displayline() of Python/traceback.c has
similar implementation.
Python/pythonrun.c