Remove white space between print ()

Change-Id: I75937c26d363a24089da989cb27d49603f0806a2
This commit is contained in:
Anh Tran 2017-01-17 09:55:50 +07:00
parent 7ef12b7580
commit e1c442fc1f
2 changed files with 6 additions and 6 deletions

View File

@ -95,16 +95,16 @@ for change in json.loads(r.text[5:]):
def print_enqueues(changes):
for change in sorted(changes, key=lambda k: k['updated'], reverse=True):
print ("zuul enqueue --trigger gerrit --pipeline check "
print("zuul enqueue --trigger gerrit --pipeline check "
"--project openstack/nova --change %s" % (change['change_id']))
print "=" * 20 + (" Changes with no votes (%d) " % len(no_votes)) + "=" * 20
print_enqueues(no_votes)
print ("=" * 20 + (" Changes with negative votes (%d) " % len(negative_votes))
+ "=" * 20)
print("=" * 20 + (" Changes with negative votes (%d) " % len(negative_votes))
+ "=" * 20)
print_enqueues(negative_votes)
print ("=" * 20 + (" Changes with merge failure (%d) " % len(merge_failures)) +
"=" * 20)
print("=" * 20 + (" Changes with merge failure (%d) " % len(merge_failures)) +
"=" * 20)
print_enqueues(merge_failures)
print "=" * 20 + (" Others in this query (%d) " % len(unknown)) + "=" * 20
print_enqueues(unknown)

View File

@ -71,7 +71,7 @@ def main():
items = connection.get_container(swift_config['container'], limit=1000)[1]
while items:
total_items += len(items)
print ('%s Processing %d items, %d items total'
print('%s Processing %d items, %d items total'
% (datetime.datetime.now(), len(items), total_items))
for item in items: