summaryrefslogtreecommitdiff
path: root/cinderclient
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 20:49:05 +0800
committerSean McGinnis <sean.mcginnis@gmail.com>2018-07-17 16:21:54 -0500
commit9b0c6c46f6ff63febcbea9476e043c64b603ee02 (patch)
treeb8ef064d229f826af1b79975cf22284e190a0cb3 /cinderclient
parent35b99baf6e0da5b13fa72b50d7a20ff1944776de (diff)
downloadpython-cinderclient-9b0c6c46f6ff63febcbea9476e043c64b603ee02.tar.gz
fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I04b87b308a82113a57ea41bde0329e92b07b642e
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