You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PEP-597 added an option to warn when the encoding argument to open() is omitted and the default locale-specific encoding is used, because this can cause bugs when the locale is incorrectly assumed to be e.g. utf-8, which may not be the case on Windows, or various systems in e.g. Japan.
Setting PYTHONWARNDEFAULTENCODING=1 in CI, and fixing any existing issues, will ensure that downstream projects can also adopt this check without awkward workarounds.
The text was updated successfully, but these errors were encountered:
PEP-597 added an option to warn when the encoding argument to
open()
is omitted and the default locale-specific encoding is used, because this can cause bugs when the locale is incorrectly assumed to be e.g. utf-8, which may not be the case on Windows, or various systems in e.g. Japan.Setting
PYTHONWARNDEFAULTENCODING=1
in CI, and fixing any existing issues, will ensure that downstream projects can also adopt this check without awkward workarounds.The text was updated successfully, but these errors were encountered: