From a425415003d9ce95d5a15705fe5d52f6bf258885 Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Tue, 31 Mar 2015 22:31:45 +0200 Subject: [PATCH] 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. --- emsdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk b/emsdk index 5fca9bf..94d1e37 100755 --- a/emsdk +++ b/emsdk @@ -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])