Merge "Remove blank space after print"

This commit is contained in:
Jenkins
2014-02-28 09:07:36 +00:00
committed by Gerrit Code Review

View File

@@ -620,7 +620,7 @@ swift-ring-builder <builder_file> rebalance <seed>
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"
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
@@ -645,7 +645,7 @@ swift-ring-builder <builder_file> rebalance <seed>
builder.validate()
except exceptions.RingValidationError as e:
print '-' * 79
print ("An error has occurred during ring validation. Common\n"
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
@@ -823,7 +823,7 @@ 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'
print('Exit codes: 0 = operation successful\n'
' 1 = operation completed with warnings\n'
' 2 = error')
exit(EXIT_SUCCESS)