mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
travis fix #1: flake8 formatting
This commit is contained in:
parent
eff7beacee
commit
05d78d5490
1 changed files with 11 additions and 6 deletions
|
@ -177,8 +177,10 @@ def gen_rules_html():
|
||||||
|
|
||||||
# open file of list of all rules
|
# open file of list of all rules
|
||||||
out_rules = open(os.path.join('html', 'rules.html'), 'w')
|
out_rules = open(os.path.join('html', 'rules.html'), 'w')
|
||||||
print(_fmt(main_header, {'title': 'PySol - une collection de jeux de solitaire'}),
|
print(_fmt(
|
||||||
file=out_rules)
|
main_header,
|
||||||
|
{'title': 'PySol - une collection de jeux de solitaire'}),
|
||||||
|
file=out_rules)
|
||||||
with open('rules.html', 'r') as file:
|
with open('rules.html', 'r') as file:
|
||||||
print(file.read(), file=out_rules)
|
print(file.read(), file=out_rules)
|
||||||
|
|
||||||
|
@ -208,11 +210,13 @@ def gen_rules_html():
|
||||||
title = 'PySol - Règles pour ' + gi.name
|
title = 'PySol - Règles pour ' + gi.name
|
||||||
s = ''
|
s = ''
|
||||||
if gi.si.game_type == GI.GT_HANAFUDA:
|
if gi.si.game_type == GI.GT_HANAFUDA:
|
||||||
s = '<a href="../hanafuda.html">Règles générales des jeux de cartes à fleurs</a>'
|
s = '<a href="../hanafuda.html">' + \
|
||||||
|
'Règles générales des jeux de cartes à fleurs</a>'
|
||||||
elif gi.si.game_type == GI.GT_DASHAVATARA_GANJIFA:
|
elif gi.si.game_type == GI.GT_DASHAVATARA_GANJIFA:
|
||||||
s = '<a href="../ganjifa.html">A-propos du Ganjifa</a>'
|
s = '<a href="../ganjifa.html">A-propos du Ganjifa</a>'
|
||||||
elif gi.si.game_type == GI.GT_HEXADECK:
|
elif gi.si.game_type == GI.GT_HEXADECK:
|
||||||
s = '<a href="../hexadeck.html">Règles générales du jeu Hex A Deck</a>'
|
s = '<a href="../hexadeck.html">' + \
|
||||||
|
'Règles générales du jeu Hex A Deck</a>'
|
||||||
elif gi.si.game_type == GI.GT_MUGHAL_GANJIFA:
|
elif gi.si.game_type == GI.GT_MUGHAL_GANJIFA:
|
||||||
s = '<a href="../ganjifa.html">A-propos du Ganjifa</a>'
|
s = '<a href="../ganjifa.html">A-propos du Ganjifa</a>'
|
||||||
# print '***', gi.name, '***'
|
# print '***', gi.name, '***'
|
||||||
|
@ -234,8 +238,9 @@ def gen_rules_html():
|
||||||
|
|
||||||
# create file of altnames
|
# create file of altnames
|
||||||
out_rules_alt = open(os.path.join('html', 'rules_alternate.html'), 'w')
|
out_rules_alt = open(os.path.join('html', 'rules_alternate.html'), 'w')
|
||||||
print(_fmt(main_header, {'title': 'PySol - une collection de jeux de solitaire'}),
|
print(_fmt(
|
||||||
file=out_rules_alt)
|
main_header, {'title': 'PySol - une collection de jeux de solitaire'}),
|
||||||
|
file=out_rules_alt)
|
||||||
with open('rules_alternate.html', 'r') as file:
|
with open('rules_alternate.html', 'r') as file:
|
||||||
print(file.read(), file=out_rules_alt)
|
print(file.read(), file=out_rules_alt)
|
||||||
altnames.sort()
|
altnames.sort()
|
||||||
|
|
Loading…
Add table
Reference in a new issue