Commit e7b1af94 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Make build_utils.ZipDir() work on Windows.

Bug: 870611
Change-Id: I311f2dcdafe25fea71ce0494424602e0e1989bb7
Reviewed-on: https://chromium-review.googlesource.com/c/1298174Reviewed-by: default avataragrieve <agrieve@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602415}
parent 41f25f66
...@@ -322,7 +322,7 @@ def AddToZipHermetic(zip_file, zip_path, src_path=None, data=None, ...@@ -322,7 +322,7 @@ def AddToZipHermetic(zip_file, zip_path, src_path=None, data=None,
return return
if src_path: if src_path:
with file(src_path) as f: with open(src_path, 'rb') as f:
data = f.read() data = f.read()
# zipfile will deflate even when it makes the file bigger. To avoid # zipfile will deflate even when it makes the file bigger. To avoid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment