From dc5c5fb4011cc8dee9b149e668dc8534ac7f51e0 Mon Sep 17 00:00:00 2001 From: Hou Ming Wang Date: Wed, 26 Feb 2014 20:53:10 +0800 Subject: [PATCH] Remove blank space after print Check Swift code, remove blank space after print. Change-Id: Ia7838ac5f33f2b335d1cd664b017e87118262d29 --- swift/cli/ringbuilder.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/swift/cli/ringbuilder.py b/swift/cli/ringbuilder.py index a1af20ae54..7ae0a2e762 100755 --- a/swift/cli/ringbuilder.py +++ b/swift/cli/ringbuilder.py @@ -620,11 +620,11 @@ swift-ring-builder rebalance parts, balance = builder.rebalance(seed=get_seed(3)) except exceptions.RingBuilderError as e: print '-' * 79 - print ("An error has occurred during ring validation. Common\n" - "causes of failure are rings that are empty or do not\n" - "have enough devices to accommodate the replica count.\n" - "Original exception message:\n %s" % e.message - ) + print("An error has occurred during ring validation. Common\n" + "causes of failure are rings that are empty or do not\n" + "have enough devices to accommodate the replica count.\n" + "Original exception message:\n %s" % e.message + ) print '-' * 79 exit(EXIT_ERROR) if not parts: @@ -645,11 +645,11 @@ swift-ring-builder rebalance builder.validate() except exceptions.RingValidationError as e: print '-' * 79 - print ("An error has occurred during ring validation. Common\n" - "causes of failure are rings that are empty or do not\n" - "have enough devices to accommodate the replica count.\n" - "Original exception message:\n %s" % e.message - ) + print("An error has occurred during ring validation. Common\n" + "causes of failure are rings that are empty or do not\n" + "have enough devices to accommodate the replica count.\n" + "Original exception message:\n %s" % e.message + ) print '-' * 79 exit(EXIT_ERROR) print 'Reassigned %d (%.02f%%) partitions. Balance is now %.02f.' % \ @@ -823,9 +823,9 @@ def main(arguments=None): for line in wrap(' '.join(cmds), 79, initial_indent='Quick list: ', subsequent_indent=' '): print line - print ('Exit codes: 0 = operation successful\n' - ' 1 = operation completed with warnings\n' - ' 2 = error') + print('Exit codes: 0 = operation successful\n' + ' 1 = operation completed with warnings\n' + ' 2 = error') exit(EXIT_SUCCESS) builder_file, ring_file = parse_builder_ring_filename_args(argv)