Skip to content

bpo-43651: Fix EncodingWarning in test_file and test_file_eintr#25109

Merged
methane merged 2 commits intopython:masterfrom
methane:fix-ew-test_file
Apr 1, 2021
Merged

bpo-43651: Fix EncodingWarning in test_file and test_file_eintr#25109
methane merged 2 commits intopython:masterfrom
methane:fix-ew-test_file

Conversation

@methane
Copy link
Member

@methane methane commented Mar 31, 2021

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the UTF-8 encoding :-) The "t" mode is ignored. I even propose to omit mode="r" since it's the default value, and I like to simply write open(filename) usually. Or now open(filename, encoding="utf-8").

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants