summaryrefslogtreecommitdiff
path: root/glanceclient/v1/apiclient/exceptions.py
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2020-06-15 21:28:17 +0200
committerCyril Roelandt <cyril@redhat.com>2020-06-23 21:51:07 +0200
commitb513c8db4bf6a5b2eb0366117ca22e042dd3529e (patch)
treebc8d62a16c78b4c80ced107266100a5b461b51d7 /glanceclient/v1/apiclient/exceptions.py
parent928935e5c0b8b43827fdf08b212d59d92b660924 (diff)
downloadpython-glanceclient-b513c8db4bf6a5b2eb0366117ca22e042dd3529e.tar.gz
Do not use the six library.
Change-Id: I3dbfcfa0f5f590a41ed549afd44537d8ed41433a
Diffstat (limited to 'glanceclient/v1/apiclient/exceptions.py')
-rw-r--r--glanceclient/v1/apiclient/exceptions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/glanceclient/v1/apiclient/exceptions.py b/glanceclient/v1/apiclient/exceptions.py
index f3d778c..27b3eba 100644
--- a/glanceclient/v1/apiclient/exceptions.py
+++ b/glanceclient/v1/apiclient/exceptions.py
@@ -36,8 +36,6 @@ Exception definitions.
import inspect
import sys
-import six
-
from glanceclient._i18n import _
@@ -461,7 +459,7 @@ def from_response(response, method, url):
kwargs["message"] = (error.get("message") or
error.get("faultstring"))
kwargs["details"] = (error.get("details") or
- six.text_type(body))
+ str(body))
elif content_type.startswith("text/"):
kwargs["details"] = getattr(response, 'text', '')