Skip to content

Commit eaa02d0

Browse files
committed
release-set-version.py: fixed invalid escape sequence
``` SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option. ```
1 parent 311c86c commit eaa02d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/release-set-version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def check_sed(args):
8181
check_sed(['-i', '-r', f's/<[?]define ProductName[ ]*=.*/<?define ProductName = "Cppcheck $(var.Platform) {cppcheck_version_string}" ?>/', 'win_installer/productInfo.wxi'])
8282
check_sed(['-i', '-r', f's/<[?]define ProductVersion[ ]*=.*/<?define ProductVersion = "{new_version}" ?>/', 'win_installer/productInfo.wxi'])
8383
for g in glob.glob('man/*.md'):
84-
check_sed(['-i', '-r', f's/subtitle: Version 2\.[0-9].*/subtitle: Version {cppcheck_version_string}/', g])
84+
check_sed(['-i', '-r', f's/subtitle: Version 2\\.[0-9].*/subtitle: Version {cppcheck_version_string}/', g])
8585
print('Versions have been changed.')
8686
print('')
8787
print('Please double check these results below:')

0 commit comments

Comments
 (0)