From 80bea0766e81db29b36d8f8b0e9db3c2b17dd52a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 21 Dec 2014 16:30:48 -0800 Subject: [PATCH] win: Update version file with unix line ending --- script/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index c2554e213a09..0ca94fdc214f 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -100,7 +100,7 @@ def create_chrome_version_h(): version = f.read() with open(template_file, 'r') as f: template = f.read() - with open(target_file, 'w+') as f: + with open(target_file, 'wb+') as f: content = template.replace('{PLACEHOLDER}', version.strip()) if f.read() != content: f.write(content)