Merge pull request #6863 from cwsaunders/master
Updating file to Python 3
This commit is contained in:
commit
d6ed2cef4b
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/python2
|
#! /usr/bin/python3
|
||||||
|
|
||||||
#config
|
#config
|
||||||
themes = {
|
themes = {
|
||||||
|
@ -14,5 +14,5 @@ whitePattern = 'body.{name} #GameBoard td.whiteSquare, body.{name} #GameBoard td
|
||||||
for name in themes:
|
for name in themes:
|
||||||
def formatCss(pattern):
|
def formatCss(pattern):
|
||||||
return pattern.replace('{name}', name).replace('{white}', themes[name][0]).replace('{black}', themes[name][1])
|
return pattern.replace('{name}', name).replace('{white}', themes[name][0]).replace('{black}', themes[name][1])
|
||||||
print formatCss(whitePattern)
|
print(formatCss(whitePattern))
|
||||||
print formatCss(blackPattern)
|
print(formatCss(blackPattern))
|
||||||
|
|
Loading…
Reference in a new issue