wscript: fix regexp escaping with the more strict Python 3.12
Previous Python versions allowed sloppy escaping. Python 3.12 will issue SyntaxWarning like: wscript:1114: SyntaxWarning: invalid escape sequence '\.' Use raw strings to pass the \ through Python syntax and down/up to Regexp syntax.
This commit is contained in:
parent
e28eaa843d
commit
c86c444157
2
wscript
2
wscript
@ -1114,7 +1114,7 @@ def configure(conf):
|
||||
|
||||
if (
|
||||
# osx up to and including 10.6 (uname 10.X.X)
|
||||
(re.search ("^[1-9][0-9]\.", os.uname()[2]) is None or not re.search ("^10\.", os.uname()[2]) is None)
|
||||
(re.search (r"^[1-9][0-9]\.", os.uname()[2]) is None or not re.search (r"^10\.", os.uname()[2]) is None)
|
||||
and (Options.options.generic or Options.options.ppc)
|
||||
and not Options.options.nocarbon
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user