summaryrefslogtreecommitdiff
path: root/oslo_utils
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-20 20:30:02 +0000
committerGerrit Code Review <review@openstack.org>2017-09-20 20:30:02 +0000
commit7d967d94c85508f0a10aed5f202e01d3c4417e7b (patch)
tree3b5dc742c5c9d867da8e9156ff85ef1efc6c179f /oslo_utils
parent08e52a1101518ccc3ecba4f383c5e0ec8db64a5e (diff)
parent75b8af3c9fc609226e094bd2e7d94dcdaeae56bb (diff)
downloadoslo-utils-7d967d94c85508f0a10aed5f202e01d3c4417e7b.tar.gz
Merge "Use six.binary_type to point to the right type"
Diffstat (limited to 'oslo_utils')
-rw-r--r--oslo_utils/encodeutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_utils/encodeutils.py b/oslo_utils/encodeutils.py
index 597e662..845f916 100644
--- a/oslo_utils/encodeutils.py
+++ b/oslo_utils/encodeutils.py
@@ -111,7 +111,7 @@ def to_utf8(text):
.. versionadded:: 3.5
"""
- if isinstance(text, bytes):
+ if isinstance(text, six.binary_type):
return text
elif isinstance(text, six.text_type):
return text.encode('utf-8')