Skip to content

Commit

Permalink
releaseCommon: fix SyntaxWarning: invalid escape sequence '\s'
Browse files Browse the repository at this point in the history
  • Loading branch information
mjerabek authored and horenmar committed Mar 1, 2024
1 parent 4d8affc commit b20b365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/releaseCommon.py
Expand Up @@ -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:
Expand Down

0 comments on commit b20b365

Please sign in to comment.