mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Fix unescaped regex warning in build script
This commit is contained in:
parent
eb4fcf21ea
commit
9948ad3d03
@ -51,7 +51,7 @@ def output_version_header():
|
|||||||
|
|
||||||
with open(os.path.join(SourceFolder, 'product.version')) as fp:
|
with open(os.path.join(SourceFolder, 'product.version')) as fp:
|
||||||
contents = fp.read()
|
contents = fp.read()
|
||||||
m = re.match('(\d+)\.(\d+)\.(\d+)-?(.*)', contents)
|
m = re.match(r'(\d+)\.(\d+)\.(\d+)-?(.*)', contents)
|
||||||
if m == None:
|
if m == None:
|
||||||
raise Exception('Could not detremine product version')
|
raise Exception('Could not detremine product version')
|
||||||
major, minor, release, tag = m.groups()
|
major, minor, release, tag = m.groups()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user