[Scummvm-git-logs] scummvm master -> c6dd1848f7c41752695519f1ae8e62dc56f3f014
lephilousophe
noreply at scummvm.org
Fri Dec 13 11:15:32 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c6dd1848f7 GUI: Fix invalid escape
Commit: c6dd1848f7c41752695519f1ae8e62dc56f3f014
https://github.com/scummvm/scummvm/commit/c6dd1848f7c41752695519f1ae8e62dc56f3f014
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2024-12-13T12:14:33+01:00
Commit Message:
GUI: Fix invalid escape
\? is an escape for the regular expression not for Python strings.
Use raw strings instead for regex as advised by Python doc.
Changed paths:
gui/themes/scummtheme.py
diff --git a/gui/themes/scummtheme.py b/gui/themes/scummtheme.py
index d5fb8787c5e..fad8f74bea1 100755
--- a/gui/themes/scummtheme.py
+++ b/gui/themes/scummtheme.py
@@ -54,8 +54,8 @@ def buildAllThemes():
buildTheme(f)
def parseSTX(theme_file, def_file, subcount):
- comm = re.compile("<!--(.*?)-->", re.DOTALL)
- head = re.compile("<\?(.*?)\?>")
+ comm = re.compile(r"<!--(.*?)-->", re.DOTALL)
+ head = re.compile(r"<\?(.*?)\?>")
strlitcount = 0
subcount += 1
More information about the Scummvm-git-logs
mailing list