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