diff options
| author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-07-04 10:20:37 +0200 |
|---|---|---|
| committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-07-04 10:25:53 +0200 |
| commit | 1fedd38de6c14fb71529a8ee52390b6edfa837d0 (patch) | |
| tree | 01213aa962915ed11153865f7ac5fee35e6f6bfc /openstackclient | |
| parent | 7f59fa594359376caf9a8490e45cd4f8bb0ead55 (diff) | |
| download | python-openstackclient-1fedd38de6c14fb71529a8ee52390b6edfa837d0.tar.gz | |
Python 3: remove a useless code to safe_encode()
The safe_encode method returns bytes, so we cannot concatenate its output with
text strings. This call does not seem needed after all, so let's just remove
it.
Change-Id: I6c18427559147d4c732ff7daa6d6006e7e5f6365
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/common/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py index 0258f931..51c3ed4b 100644 --- a/openstackclient/common/utils.py +++ b/openstackclient/common/utils.py @@ -23,7 +23,6 @@ import sys import time from openstackclient.common import exceptions -from openstackclient.openstack.common import strutils def find_resource(manager, name_or_id): @@ -79,8 +78,7 @@ def format_dict(data): output = "" for s in data: - output = output + s + "='" + \ - strutils.safe_encode(six.text_type(data[s])) + "', " + output = output + s + "='" + six.text_type(data[s]) + "', " return output[:-2] |
