summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-12-03 17:42:49 +0000
committerGerrit Code Review <review@openstack.org>2012-12-03 17:42:49 +0000
commit9ad422b825180a05df9af50d3a1dabea005b4861 (patch)
treed993825ec45f74c69175c489f03b6dcb63a22b46
parent585d4820ee8ac07ab46db9cd80e45e50ed115606 (diff)
parentb86aa97c3ec1432fc21002e263eb7dd63dec2233 (diff)
downloadoslo-9ad422b825180a05df9af50d3a1dabea005b4861.tar.gz
oslo-9ad422b825180a05df9af50d3a1dabea005b4861.tar.xz
oslo-9ad422b825180a05df9af50d3a1dabea005b4861.zip
Merge "Fixes update.py issue with EOL style on Windows"
-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()