summaryrefslogtreecommitdiffstats
path: root/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'update.py')
-rw-r--r--update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/update.py b/update.py
index d7b0c18..6ad205f 100644
--- a/update.py
+++ b/update.py
@@ -115,7 +115,7 @@ def _dest_path(path, base, dest_dir):
def _replace(path, pattern, replacement):
- with open(path, "r+") as f:
+ with open(path, "rb+") as f:
lines = f.readlines()
f.seek(0)
f.truncate()