Index: chrome/browser/resources/safe_browsing/gen_file_type_proto.py |
diff --git a/chrome/browser/resources/safe_browsing/gen_file_type_proto.py b/chrome/browser/resources/safe_browsing/gen_file_type_proto.py |
index deba4a5859db9dffce71bddb53ac6d92e6058b1f..311cf662b000c695253957eed9cd101918274501 100755 |
--- a/chrome/browser/resources/safe_browsing/gen_file_type_proto.py |
+++ b/chrome/browser/resources/safe_browsing/gen_file_type_proto.py |
@@ -35,7 +35,7 @@ def ConvertProto(opts): |
binary_pb_str = pb.SerializeToString() |
# Write it to disk |
- open(opts.outfile, 'w').write(binary_pb_str) |
+ open(opts.outfile, 'wb').write(binary_pb_str) |
def main(): |