diff options
author | marmeladema <xademax@gmail.com> | 2019-10-20 19:59:34 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-10-22 10:15:59 +0100 |
commit | 7e9ce2dbd5c660b3832614573737923bb8929551 (patch) | |
tree | 441032bf2f00310863a2336ba8cd672eead88f09 /python/servo/command_base.py | |
parent | ff50cdb1831c4f35c21fc922bd8be085232ad0e3 (diff) | |
download | servo-7e9ce2dbd5c660b3832614573737923bb8929551.tar.gz servo-7e9ce2dbd5c660b3832614573737923bb8929551.zip |
Use six.text_type instead of str to check instance type
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 4 |
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 |