diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-09-20 20:30:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-09-20 20:30:02 +0000 |
commit | 7d967d94c85508f0a10aed5f202e01d3c4417e7b (patch) | |
tree | 3b5dc742c5c9d867da8e9156ff85ef1efc6c179f /oslo_utils | |
parent | 08e52a1101518ccc3ecba4f383c5e0ec8db64a5e (diff) | |
parent | 75b8af3c9fc609226e094bd2e7d94dcdaeae56bb (diff) | |
download | oslo-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.py | 2 |
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') |