diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2013-12-04 18:37:50 -0600 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2014-01-22 18:53:11 -0600 |
| commit | 350718f3bbad1e3b5da45bbb4e61e4af5a11e944 (patch) | |
| tree | de2c8b04b0f08c5e2866af48b0a04f2523bf27f1 /openstackclient | |
| parent | 5dcc3b6164fea72c236ec339938c0117b2330bb6 (diff) | |
| download | python-openstackclient-350718f3bbad1e3b5da45bbb4e61e4af5a11e944.tar.gz | |
Remove remaining print statements
I think these are the last two stragglers, including debugging lines
Change-Id: Ic3dd98480211d0f7d3cc951bec5cd54f902a101f
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/compute/v2/usage.py | 7 | ||||
| -rw-r--r-- | openstackclient/object/v1/lib/object.py | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py index f60c2105..30835769 100644 --- a/openstackclient/compute/v2/usage.py +++ b/openstackclient/compute/v2/usage.py @@ -17,6 +17,7 @@ import datetime import logging +import sys from cliff import lister @@ -95,8 +96,10 @@ class ListUsage(lister.Lister): pass if len(usage_list) > 0: - print("Usage from %s to %s:" % (start.strftime(dateformat), - end.strftime(dateformat))) + sys.stdout.write("Usage from %s to %s:" % ( + start.strftime(dateformat), + end.strftime(dateformat), + )) return (column_headers, (utils.get_item_properties( diff --git a/openstackclient/object/v1/lib/object.py b/openstackclient/object/v1/lib/object.py index 8ad5e5a5..840ff0c0 100644 --- a/openstackclient/object/v1/lib/object.py +++ b/openstackclient/object/v1/lib/object.py @@ -126,7 +126,6 @@ def show_object( 'container': container, 'object': obj, } - #print "data: %s" % data data['content-type'] = response.headers.get('content-type', None) if 'content-length' in response.headers: data['content-length'] = response.headers.get('content-length', None) |
