Commit 7ea1c78b authored by Jérome Perrin's avatar Jérome Perrin

open_api: pylint py3

parent 30272ee5
...@@ -105,7 +105,7 @@ if six.PY2: ...@@ -105,7 +105,7 @@ if six.PY2:
return [byteify(element) for element in string] return [byteify(element) for element in string]
elif isinstance(string, tuple): elif isinstance(string, tuple):
return tuple(byteify(element) for element in string) return tuple(byteify(element) for element in string)
elif isinstance(string, unicode): elif isinstance(string, six.text_type):
return string.encode('utf-8') return string.encode('utf-8')
else: else:
return string return string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment