Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Sep 26, 2023

Remove replace_stdout(): call sys.stdout.reconfigure() instead of set the error handler to backslashreplace.

display_header() logs an empty line and flush stdout.

Remove encoding workaround in display_header() since stdout error handler is now set to backslashreplace earlier.

Remove replace_stdout(): call sys.stdout.reconfigure() instead of set the error handler to backslashreplace. display_header() logs an empty line and flush stdout. Remove encoding workaround in display_header() since stdout error handler is now set to backslashreplace earlier.
@vstinnervstinner merged commit b1e4f6e into python:mainSep 26, 2023
@vstinnervstinner deleted the regrtest_stdout branch September 26, 2023 19:34
csm10495 pushed a commit to csm10495/cpython that referenced this pull request Sep 28, 2023
Remove replace_stdout(): call sys.stdout.reconfigure() instead of set the error handler to backslashreplace. display_header() logs an empty line and flush stdout. Remove encoding workaround in display_header() since stdout error handler is now set to backslashreplace earlier.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Remove replace_stdout(): call sys.stdout.reconfigure() instead of set the error handler to backslashreplace. display_header() logs an empty line and flush stdout. Remove encoding workaround in display_header() since stdout error handler is now set to backslashreplace earlier.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@vstinner