Fix regex linting in packages/build_scripts.

This commit is contained in:
John Chilton
2019-05-28 16:38:39 -04:00
parent 905a40d090
commit 500a5cc46d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ def main(argv):
history = history.replace(".dev0", " (%s)" % today_str)
open(history_path, "w").write(history)
mod = open(mod_path, "r").read()
mod = re.sub("__version__ = '[\d\.]*\.dev0'",
mod = re.sub(r"__version__ = '[\d\.]*\.dev0'",
"__version__ = '%s'" % version,
mod)
mod = open(mod_path, "w").write(mod)
+1 -1
View File
@@ -49,7 +49,7 @@ def main(argv):
mod_path = os.path.join(PROJECT_DIRECTORY, source_dir, PROJECT_MODULE_FILENAME)
mod = open(mod_path, "r").read()
if not DEV_RELEASE:
mod = re.sub("__version__ = '[\d\.]+'",
mod = re.sub(r"__version__ = '[\d\.]+'",
"__version__ = '%s.dev0'" % new_version,
mod, 1)
else: