Python 3.13: Fix and polish #1
@ -41,6 +41,7 @@ import curses
|
|||||||
from signal import signal, SIGINT
|
from signal import signal, SIGINT
|
||||||
import time # allowing the loop steps of train animation to be slowed
|
import time # allowing the loop steps of train animation to be slowed
|
||||||
import string # for input validation
|
import string # for input validation
|
||||||
|
from html import escape
|
||||||
from inspect import cleandoc
|
from inspect import cleandoc
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@ -339,7 +340,7 @@ train_str = "\n".join(train)
|
|||||||
|
|
||||||
if print_train:
|
if print_train:
|
||||||
print("<pre>")
|
print("<pre>")
|
||||||
print(train_str)
|
print(escape(train_str))
|
||||||
print("</pre>")
|
print("</pre>")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user