diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-09 14:48:19 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-09 17:01:25 +0000 |
commit | 23e647539cb9c6872d9f72de99c21e113fded77c (patch) | |
tree | cb1d066f225e328b664a6fa3dd73607fec181f9e /heatclient/common/http.py | |
parent | a12456c17c5f43a35a54e605e89f74205be1e98e (diff) | |
download | python-heatclient-23e647539cb9c6872d9f72de99c21e113fded77c.tar.gz |
Remove six
This library no longer supports Python 2, thus usage of six can be
removed.
Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
Diffstat (limited to 'heatclient/common/http.py')
-rw-r--r-- | heatclient/common/http.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py index 3a85bc5..f71ca66 100644 --- a/heatclient/common/http.py +++ b/heatclient/common/http.py @@ -24,8 +24,7 @@ from oslo_serialization import jsonutils from oslo_utils import encodeutils from oslo_utils import importutils import requests -import six -from six.moves.urllib import parse +from urllib import parse from heatclient._i18n import _ from heatclient.common import utils @@ -151,7 +150,7 @@ class HTTPClient(object): dump.append('') if resp.content: content = resp.content - if isinstance(content, six.binary_type): + if isinstance(content, bytes): content = content.decode() dump.extend([content, '']) LOG.debug('\n'.join(dump)) |