Changed some additions to += as Python supports that operator (Didn't realize that before).

svn-id: r28096
This commit is contained in:
Kari Salminen 2007-07-15 09:52:08 +00:00
parent 6376321e5a
commit d725c5fab6

View File

@ -50,12 +50,12 @@ def printColor(color, tabulate = True, printLastComma = True, newLine = True):
"""Prints color with optional start tabulation, comma in the end and a newline"""
result = ""
if tabulate:
result = result + "\t"
result += "\t"
for component in color[:-1]:
result = result + ((componentPrintFormat + ", ") % component)
result = result + (componentPrintFormat % color[-1])
result += ((componentPrintFormat + ", ") % component)
result += (componentPrintFormat % color[-1])
if printLastComma:
result = result + ","
result += ","
if newLine:
print result
else: