summaryrefslogtreecommitdiff
path: root/cinderclient
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-19 17:26:45 +0000
committerGerrit Code Review <review@openstack.org>2018-07-19 17:26:45 +0000
commitf69bfcbd7ffbdcd45e36768b760e53bd1c1c32d3 (patch)
tree3f7a972ac1e011cbb3960996994799bcf1947c19 /cinderclient
parent90727008876ef35d3135d494aeb45bdf2f63e8fc (diff)
parent9b0c6c46f6ff63febcbea9476e043c64b603ee02 (diff)
downloadpython-cinderclient-f69bfcbd7ffbdcd45e36768b760e53bd1c1c32d3.tar.gz
Merge "fix tox python3 overrides"
Diffstat (limited to 'cinderclient')
-rw-r--r--cinderclient/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/utils.py b/cinderclient/utils.py
index 0d8408e..f9af58d 100644
--- a/cinderclient/utils.py
+++ b/cinderclient/utils.py
@@ -187,7 +187,7 @@ def print_list(objs, fields, exclude_unavailable=False, formatters=None,
def _encode(src):
"""remove extra 'u' in PY2."""
- if six.PY2 and isinstance(src, unicode):
+ if six.PY2 and isinstance(src, six.text_type):
return src.encode('utf-8')
return src