mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-05 21:59:54 +01:00
releaseCommon: fix SyntaxWarning: invalid escape sequence '\s'
This commit is contained in:
parent
4d8affc989
commit
b20b365fd2
@ -89,7 +89,7 @@ def updateCmakeFile(version):
|
||||
def updateMesonFile(version):
|
||||
with open(mesonPath, 'rb') as file:
|
||||
lines = file.readlines()
|
||||
replacementRegex = re.compile(b'''version\s*:\s*'(\\d+.\\d+.\\d+)', # CML version placeholder, don't delete''')
|
||||
replacementRegex = re.compile(b'''version\\s*:\\s*'(\\d+.\\d+.\\d+)', # CML version placeholder, don't delete''')
|
||||
replacement = '''version: '{0}', # CML version placeholder, don't delete'''.format(version.getVersionString()).encode('ascii')
|
||||
with open(mesonPath, 'wb') as file:
|
||||
for line in lines:
|
||||
|
Loading…
Reference in New Issue
Block a user