From 350718f3bbad1e3b5da45bbb4e61e4af5a11e944 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 4 Dec 2013 18:37:50 -0600 Subject: Remove remaining print statements I think these are the last two stragglers, including debugging lines Change-Id: Ic3dd98480211d0f7d3cc951bec5cd54f902a101f --- openstackclient/compute/v2/usage.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openstackclient/compute') 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( -- cgit v1.2.1