mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 04:33:09 +00:00
Changed some additions to += as Python supports that operator (Didn't realize that before).
svn-id: r28096
This commit is contained in:
parent
6376321e5a
commit
d725c5fab6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user