summaryrefslogtreecommitdiff
path: root/cinderclient/shell.py
diff options
context:
space:
mode:
authorhaixin <haixin@inspur.com>2020-09-30 10:40:31 +0800
committerhaixin <haixin@inspur.com>2021-03-04 16:03:35 +0800
commitcea1f674ae1ce545c0cac209b423ac9d626f0c68 (patch)
tree115ce0356744e48f37678f56220a754f6c066daa /cinderclient/shell.py
parent1abc1b5d404c523a696f7186bc4c4b6fc7407cad (diff)
downloadpython-cinderclient-cea1f674ae1ce545c0cac209b423ac9d626f0c68.tar.gz
Remove all usage of six library
Replace six with Python 3 style code. Change-Id: I4b97e040f3e790ac114dcd43c68e6b67b1079adf
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)