print_error_text() doesn't encode the filename anymore · pythoncapi/cpython@efa7a0e · GitHub
Skip to content

Commit efa7a0e

Browse files
committed
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.
1 parent 0b69fbc commit efa7a0e

1 file changed

Lines changed: 35 additions & 27 deletions

File tree

Python/pythonrun.c

Lines changed: 35 additions & 27 deletions

0 commit comments

Comments
 (0)