summaryrefslogtreecommitdiff
path: root/openstackclient/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/shell.py')
-rw-r--r--openstackclient/shell.py8
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)