Python 3.13: Fix and polish #1

Merged
vilmibm merged 15 commits from noelle/tilde-train:python-3.13 into trunk 2025-06-02 22:23:23 +00:00
Showing only changes of commit 6063c8b3b3 - Show all commits

View File

@ -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()