aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-06 15:35:18 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-06 15:35:18 -0800
commit8755dbd309ae4eab754385853ac6959bfade588d (patch)
treec61035555f558ed7ae7dc750f504dc1c16d333d8
parent6b1235a3ab4b1f93d3b5e2b78b77658013637aa2 (diff)
downloadcryptography-8755dbd309ae4eab754385853ac6959bfade588d.tar.gz
cryptography-8755dbd309ae4eab754385853ac6959bfade588d.tar.bz2
cryptography-8755dbd309ae4eab754385853ac6959bfade588d.zip
Fix
-rw-r--r--tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 5db7a617..dba760ca 100644
--- a/tasks.py
+++ b/tasks.py
@@ -25,7 +25,8 @@ def update_version(filename, identifier, version):
contents = re.sub(
r"^{} = .*?$".format(identifier),
'{} = "{}"'.format(identifier, version),
- contents
+ contents,
+ flags=re.MULTILINE
)
with open(path, "w") as f:
f.write(contents)