Re-add the check so we still get early failure if this ever happens

This commit is contained in:
Jean-Paul Calderone 2021-02-09 21:21:31 -05:00
parent 3beacc9c8f
commit 9b2a9e14ae

View File

@ -69,6 +69,7 @@ def _reload():
global filesystem_encoding, is_unicode_platform, use_unicode_filepath
filesystem_encoding = canonical_encoding(sys.getfilesystemencoding())
check_encoding(filesystem_encoding)
is_unicode_platform = PY3 or sys.platform in ["win32", "darwin"]
# Despite the Unicode-mode FilePath support added to Twisted in