[rtems commit] waf: Fix Python 3.12 escape sequences

Chris Johns chrisj at rtems.org
Wed Nov 22 20:59:56 UTC 2023


Module:    rtems
Branch:    master
Commit:    72c11fa91ab99e23252000797fcfd0d4aa0de1cf
Changeset: http://git.rtems.org/rtems/commit/?id=72c11fa91ab99e23252000797fcfd0d4aa0de1cf

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Nov 22 14:20:23 2023 +1100

waf: Fix Python 3.12 escape sequences

Updates #4968

---

 wscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wscript b/wscript
index 69732d4e17..dd7fda7225 100755
--- a/wscript
+++ b/wscript
@@ -125,7 +125,7 @@ class Template(string.Template):
     idpattern = "[_A-Za-z][_A-Za-z0-9:#]*"
 
 
-_VAR_PATTERN = re.compile("\$\{?(" + Template.idpattern + ")\}?$")
+_VAR_PATTERN = re.compile("\\$\\{?(" + Template.idpattern + ")\\}?$")
 
 
 def _is_enabled_op_and(enabled, enabled_by):



More information about the vc mailing list