summaryrefslogtreecommitdiff
path: root/cinderclient/shell.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-03-08 16:02:59 +0000
committerGerrit Code Review <review@openstack.org>2021-03-08 16:02:59 +0000
commit8e804292db6922516e8a6fd52d14dcd64396d00c (patch)
treedc917fcfb5c55a13aec7f62afd2c7c1e436bbb3a /cinderclient/shell.py
parentd2b3351a57ae054cbd7cdef2c8e0bca5f22ae0b0 (diff)
parentcea1f674ae1ce545c0cac209b423ac9d626f0c68 (diff)
downloadpython-cinderclient-8e804292db6922516e8a6fd52d14dcd64396d00c.tar.gz
Merge "Remove all usage of six library"
Diffstat (limited to 'cinderclient/shell.py')
-rw-r--r--cinderclient/shell.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py
index ff8c4c4..9e9cfb1 100644
--- a/cinderclient/shell.py
+++ b/cinderclient/shell.py
@@ -32,8 +32,7 @@ from keystoneauth1 import session
from oslo_utils import encodeutils
from oslo_utils import importutils
import requests
-import six
-import six.moves.urllib.parse as urlparse
+from urllib import parse as urlparse
import cinderclient
from cinderclient._i18n import _
@@ -395,7 +394,7 @@ class OpenStackCinderShell(object):
else:
msg = (_(" (Supported until API version %(end)s)")
% {"end": end_version.get_string()})
- return six.text_type(msg)
+ return str(msg)
def _find_actions(self, subparsers, actions_module, version,
do_help, input_args):
@@ -1026,7 +1025,7 @@ def main():
sys.exit(130)
except Exception as e:
logger.debug(e, exc_info=1)
- print("ERROR: %s" % six.text_type(e), file=sys.stderr)
+ print("ERROR: %s" % str(e), file=sys.stderr)
sys.exit(1)