diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py index f60c2105b5..3083576945 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 6f9c9d63d3..646737bdbd 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)