diff options
| author | Zuul <zuul@review.opendev.org> | 2020-10-09 19:37:48 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-10-09 19:37:48 +0000 |
| commit | a48c05b90a376ce33e2f0a2d321b8c851a6ef0b0 (patch) | |
| tree | da430ebd4695049d4fdc06b8892f7103d6b0f5cc /openstackclient/shell.py | |
| parent | 960004dcc733e88841d372e160b9e43669796c80 (diff) | |
| parent | c2df9215e19752714e83fcad82c8ae3708f85d7a (diff) | |
| download | python-openstackclient-a48c05b90a376ce33e2f0a2d321b8c851a6ef0b0.tar.gz | |
Merge "Remove usage of six"
Diffstat (limited to 'openstackclient/shell.py')
| -rw-r--r-- | openstackclient/shell.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index 755af24d..bc88e1f1 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -16,13 +16,11 @@ """Command-line interface to the OpenStack APIs""" -import locale import sys from osc_lib.api import auth from osc_lib.command import commandmanager from osc_lib import shell -import six import openstackclient from openstackclient.common import clientmanager @@ -143,12 +141,6 @@ class OpenStackShell(shell.OpenStackShell): def main(argv=None): if argv is None: argv = sys.argv[1:] - if six.PY2: - # Emulate Py3, decode argv into Unicode based on locale so that - # commands always see arguments as text instead of binary data - encoding = locale.getpreferredencoding() - if encoding: - argv = map(lambda arg: arg.decode(encoding), argv) return OpenStackShell().run(argv) |
