diff options
author | Dirk Mueller <dirk@dmllr.de> | 2013-06-10 09:58:18 +0200 |
---|---|---|
committer | Dirk Mueller <dirk@dmllr.de> | 2013-06-23 18:14:43 +0200 |
commit | f695342683910520cfbcf5b043f21c67d3a7048f (patch) | |
tree | 3434cfb36381c1d19b2c933a111466bd80fe303d /keystoneclient/utils.py | |
parent | 2239c3b27c657dc0ffe2dbd0f95325e0ed7ae7c5 (diff) | |
download | python-keystoneclient-f695342683910520cfbcf5b043f21c67d3a7048f.tar.gz |
Use Python 3.x compatible print syntax
Adding an extra pair of braces helps here to
let Python 3.x interpret it as print function,
while not confusing the Python 2.x print operator.
Change-Id: I05af267ecfbcc80753726743fdf82c330350afcb
Diffstat (limited to 'keystoneclient/utils.py')
-rw-r--r-- | keystoneclient/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index d3821ab..8769456 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -42,7 +42,7 @@ def print_list(objs, fields, formatters={}, order_by=None): if order_by is None: order_by = fields[0] - print pt.get_string(sortby=order_by) + print(pt.get_string(sortby=order_by)) def _word_wrap(string, max_length=0): @@ -66,7 +66,7 @@ def print_dict(d, wrap=0): value = '' value = _word_wrap(value, max_length=wrap) pt.add_row([prop, value]) - print pt.get_string(sortby='Property') + print(pt.get_string(sortby='Property')) def find_resource(manager, name_or_id): |