From 64f71e66b2ed6e7ac39cb505b8c1a753006809df Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 6 Feb 2012 00:14:25 +0100 Subject: When writing data from repository open file as binary. Windows requires files to be explicitly opened as binaries, otherwise it will perform line ending translations. We really don't want the OS to mess with that. Change-Id: Id56de354b7ad0e5b056540755f7108456f3263ed --- utils/common/gitscraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common/gitscraper.py b/utils/common/gitscraper.py index 49ef42d..cfa017a 100755 --- a/utils/common/gitscraper.py +++ b/utils/common/gitscraper.py @@ -115,7 +115,7 @@ def get_object(repo, blob, destfile): return False if not os.path.exists(os.path.dirname(destfile)): os.makedirs(os.path.dirname(destfile)) - f = open(destfile, 'w') + f = open(destfile, 'wb') for line in cmdout[0]: f.write(line) f.close() -- cgit v1.1