pass regular expressions as raw strings in Python scripts (#1450)

This commit is contained in:
Fabian Greffrath 2024-10-29 22:44:53 +01:00 committed by GitHub
parent 324071330e
commit 61a0917526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -34,8 +34,8 @@ import re
debug = False
defines = {}
command_re = re.compile("\#(\w+)(\s+(.*))?")
include_re = re.compile('\s*"(.*)"\s*')
command_re = re.compile(r"\#(\w+)(\s+(.*))?")
include_re = re.compile(r'\s*"(.*)"\s*')
def debug_msg(message):