Undo one change from str to unicode

This change was introduced by 2to3, but since the line is intended for
Python 2 only, it should still refer to unicode.
This commit is contained in:
Martin von Gagern
2015-03-31 22:31:45 +02:00
parent 44df6dcec5
commit a425415003

2
emsdk
View File

@@ -692,7 +692,7 @@ class Tool:
def __init__(self, data):
# Convert the dictionary representation of the tool in 'data' to members of this class for convenience.
for key in data:
if sys.version_info < (3,) and isinstance(data[key], str):
if sys.version_info < (3,) and isinstance(data[key], unicode):
setattr(self, key, data[key].encode('Latin-1'))
else:
setattr(self, key, data[key])