factorio-updater
factorio-updater copied to clipboard
/update_factorio.py:196: SyntaxWarning: invalid escape sequence '\d'
Python 3.12 updates a DeprecatedWarning
that was added in 3.6 to a SyntaxWarning
./update_factorio.py -h
update_factorio.py:196: SyntaxWarning: invalid escape sequence '\d'
source_version = re.search("Version: (\d+\.\d+\.\d+)", version_output)
Replacing the escapes in the regular expression search from \d
→ \\d
(or \.
→ \\.
fixes it.
See Pull Request #64