forked from vilmibm/tilde-train
Use r-strings for embedded train car art
That fixes these SyntaxWarnings: tilde-train.py:60: SyntaxWarning: invalid escape sequence '\_' | | | |__/V\_| | tilde-train.py:76: SyntaxWarning: invalid escape sequence '\-' == - / \-/ \-----/ \-/ \ - == tilde-train.py:86: SyntaxWarning: invalid escape sequence '\-' - / \-/ \------/ \-/ \ -
This commit is contained in:
parent
1162faad18
commit
c8d49bda3d
@ -53,7 +53,7 @@ print_train = False ## print train to file (instead of the screen scroll)
|
|||||||
train = [""]*max_y ## empty train of correct height.
|
train = [""]*max_y ## empty train of correct height.
|
||||||
cars = []
|
cars = []
|
||||||
|
|
||||||
engine = """ ____
|
engine = r""" ____
|
||||||
|____| ------------
|
|____| ------------
|
||||||
| | === | ------ |
|
| | === | ------ |
|
||||||
___| |__| |_____| | O | |
|
___| |__| |_____| | O | |
|
||||||
@ -65,7 +65,7 @@ engine = """ ____
|
|||||||
//// \__/ \__/ \__/ \__/ """
|
//// \__/ \__/ \__/ \__/ """
|
||||||
engine = engine.split("\n")
|
engine = engine.split("\n")
|
||||||
|
|
||||||
caboose = """ ||
|
caboose = r""" ||
|
||||||
============= ||
|
============= ||
|
||||||
=========| |==========
|
=========| |==========
|
||||||
| ---- ---- |
|
| ---- ---- |
|
||||||
@ -77,7 +77,7 @@ caboose = """ ||
|
|||||||
\__/ \__/ \__/ \__/ """
|
\__/ \__/ \__/ \__/ """
|
||||||
caboose = caboose.split("\n")
|
caboose = caboose.split("\n")
|
||||||
|
|
||||||
default_car = """ ----------------------------
|
default_car = r""" ----------------------------
|
||||||
| |
|
| |
|
||||||
| YOUR TRAIN CAR HERE! |
|
| YOUR TRAIN CAR HERE! |
|
||||||
| Just create a |
|
| Just create a |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user