Merge pull request #6863 from cwsaunders/master

Updating file to Python 3
pull/6865/head
Thibault Duplessis 2020-06-23 10:53:25 +02:00 committed by GitHub
commit d6ed2cef4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#! /usr/bin/python2
#! /usr/bin/python3
#config
themes = {
@ -14,5 +14,5 @@ whitePattern = 'body.{name} #GameBoard td.whiteSquare, body.{name} #GameBoard td
for name in themes:
def formatCss(pattern):
return pattern.replace('{name}', name).replace('{white}', themes[name][0]).replace('{black}', themes[name][1])
print formatCss(whitePattern)
print formatCss(blackPattern)
print(formatCss(whitePattern))
print(formatCss(blackPattern))