summaryrefslogtreecommitdiffstats
path: root/third_party/crashpad
diff options
context:
space:
mode:
authorbrucedawson <brucedawson@chromium.org>2015-12-15 13:38:31 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-15 21:39:50 +0000
commit2406cddd6fd75706c73dbe6e134b72ed8795f1bc (patch)
tree37549e8471a2970f80f442d4ca9eb21bdc811e3b /third_party/crashpad
parent855040c2c2e5ac0abe8b94ead7daa93ded6b9b54 (diff)
downloadchromium_src-2406cddd6fd75706c73dbe6e134b72ed8795f1bc.zip
chromium_src-2406cddd6fd75706c73dbe6e134b72ed8795f1bc.tar.gz
chromium_src-2406cddd6fd75706c73dbe6e134b72ed8795f1bc.tar.bz2
Write README.chromium in 'wb' mode to avoid CRs
If crashpad\update.py is run on Windows then README.chromium shows up as having all lines modified. This is because it was opened in 'w' mode instead of 'wb' mode. Fixing this makes it easier to run README.chromium on Windows. Review URL: https://codereview.chromium.org/1531503002 Cr-Commit-Position: refs/heads/master@{#365335}
Diffstat (limited to 'third_party/crashpad')
-rwxr-xr-xthird_party/crashpad/update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/crashpad/update.py b/third_party/crashpad/update.py
index 97d3bd5..e861519 100755
--- a/third_party/crashpad/update.py
+++ b/third_party/crashpad/update.py
@@ -200,7 +200,7 @@ Press ^C to abort.
subprocess.check_call(['git', 'reset', '--soft', original_head])
# Write the new README.
- open(readme_path, 'w').write(readme_content_new)
+ open(readme_path, 'wb').write(readme_content_new)
# Commit everything.
subprocess.check_call(['git', 'add', readme_path])