Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1065)

Unified Diff: ppapi/generators/idl_outfile.py

Issue 9088010: Output generated headers using Python's "wb" mode, to prevent EOL-munging. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_outfile.py
diff --git a/ppapi/generators/idl_outfile.py b/ppapi/generators/idl_outfile.py
index 434cfa0990eabfa359b0c73902f062eb99f759ba..334c27ca55a3c645849dcf5e57477aca93e8bb60 100644
--- a/ppapi/generators/idl_outfile.py
+++ b/ppapi/generators/idl_outfile.py
@@ -106,7 +106,7 @@ class IDLOutFile(object):
os.makedirs(basepath)
if not GetOption('test'):
- outfile = open(filename, 'w')
+ outfile = open(filename, 'wb')
outfile.write(outtext)
InfoOut.Log('Output %s written.' % self.filename)
return True
@@ -173,4 +173,3 @@ if __name__ == '__main__':
os.remove(filename)
if not errors: InfoOut.Log('All tests pass.')
sys.exit(errors)
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698