summaryrefslogtreecommitdiff
path: root/keystoneclient/utils.py
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2014-10-14 17:49:17 -0400
committerSteve Martinelli <stevemar@ca.ibm.com>2014-10-15 04:25:50 +0000
commit802301ca1763043bf699a52043504ab71a4dbb3b (patch)
treeca19bdc3eec296eda4721f92946525edc71856fb /keystoneclient/utils.py
parent89dc951f7d5a603f0c34b7c2cb9f7d26d73d9916 (diff)
downloadpython-keystoneclient-802301ca1763043bf699a52043504ab71a4dbb3b.tar.gz
Use oslo.utils and oslo.serialization
Left timeutils and strutils in openstack/common since they are used in openstack/common/apiclient and memorycache. Change-Id: Idb5f09c159d907dfba84cd1f7501f650318af7d9
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r--keystoneclient/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py
index d3342f4..436b2f6 100644
--- a/keystoneclient/utils.py
+++ b/keystoneclient/utils.py
@@ -17,11 +17,11 @@ import inspect
import logging
import sys
+from oslo.utils import encodeutils
import prettytable
import six
from keystoneclient import exceptions
-from keystoneclient.openstack.common import strutils
logger = logging.getLogger(__name__)
@@ -61,7 +61,7 @@ def print_list(objs, fields, formatters={}, order_by=None):
if order_by is None:
order_by = fields[0]
- encoded = strutils.safe_encode(pt.get_string(sortby=order_by))
+ encoded = encodeutils.safe_encode(pt.get_string(sortby=order_by))
if six.PY3:
encoded = encoded.decode()
print(encoded)
@@ -88,7 +88,7 @@ def print_dict(d, wrap=0):
value = ''
value = _word_wrap(value, max_length=wrap)
pt.add_row([prop, value])
- encoded = strutils.safe_encode(pt.get_string(sortby='Property'))
+ encoded = encodeutils.safe_encode(pt.get_string(sortby='Property'))
if six.PY3:
encoded = encoded.decode()
print(encoded)