mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
remove the 't' mode for codecs.open
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -784,6 +784,7 @@ def textfile_open(filename, mode='rt'):
|
||||
assert 't' in mode
|
||||
if sys.version_info < (3,):
|
||||
import codecs
|
||||
mode = mode.replace('t', '')
|
||||
return codecs.open(filename, mode, encoding='utf-8')
|
||||
else:
|
||||
return open(filename, mode, encoding='utf-8')
|
||||
|
||||
Reference in New Issue
Block a user