aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 51fa4bc4b5a..4a216c690af 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -135,10 +135,10 @@ def normalize_env(env):
# want UTF-8, they shouldn't pass in a unicode instance.
normalized_env = {}
for k, v in env.items():
- if isinstance(k, unicode):
+ if isinstance(k, six.text_type):
k = k.encode('utf-8', 'strict')
- if isinstance(v, unicode):
+ if isinstance(v, six.text_type):
v = v.encode('utf-8', 'strict')
normalized_env[k] = v