Skip to content
Permalink
Browse files

Do not assume that version placeholders contain ")"

  • Loading branch information...
horenmar committed Sep 6, 2019
1 parent 071baca commit 1189a73be28031ea1b162ad78dedd0b254bf2ef7
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/releaseCommon.py
@@ -127,8 +127,8 @@ def updateVersionDefine(version):
def updateVersionPlaceholder(filename, version):
with open(filename, 'rb') as file:
lines = file.readlines()
placeholderRegex = re.compile(b'\) in Catch X.Y.Z')
replacement = '\) in Catch {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii')
placeholderRegex = re.compile(b' in Catch X.Y.Z')
replacement = ' in Catch {}.{}.{}'.format(version.majorVersion, version.minorVersion, version.patchNumber).encode('ascii')
with open(filename, 'wb') as file:
for line in lines:
file.write(placeholderRegex.sub(replacement, line))

0 comments on commit 1189a73

Please sign in to comment.
You can’t perform that action at this time.