revert 21728/21729 open=>io.open change, for Windows
svn: r21732
This commit is contained in:
parent
42d8a95512
commit
0c791b2d14
@ -1083,7 +1083,7 @@ class PluginRegister(object):
|
|||||||
full_filename = os.path.join(dir, filename)
|
full_filename = os.path.join(dir, filename)
|
||||||
if sys.version_info[0] < 3:
|
if sys.version_info[0] < 3:
|
||||||
full_filename = full_filename.encode(glocale.getfilesystemencoding())
|
full_filename = full_filename.encode(glocale.getfilesystemencoding())
|
||||||
fd = io.open(full_filename, 'r')
|
fd = open(full_filename, 'r')
|
||||||
else:
|
else:
|
||||||
fd = io.open(full_filename, 'r', encoding = 'utf-8')
|
fd = io.open(full_filename, 'r', encoding = 'utf-8')
|
||||||
stream = fd.read()
|
stream = fd.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user