Index: test/rules-rebuild/src/make-sources.py |
diff --git a/test/rules-rebuild/src/make-sources.py b/test/rules-rebuild/src/make-sources.py |
index 7ec022780c04f17c1a761ae2ebe070c0d2953158..dd9e52856e3e5e4ff42bfa32f04cae592560d481 100755 |
--- a/test/rules-rebuild/src/make-sources.py |
+++ b/test/rules-rebuild/src/make-sources.py |
@@ -10,9 +10,9 @@ assert len(sys.argv) == 4, sys.argv |
(in_file, c_file, h_file) = sys.argv[1:] |
def write_file(filename, contents): |
- open(filename, 'wb').write(contents) |
+ open(filename, 'w').write(contents) |
-write_file(c_file, open(in_file, 'rb').read()) |
+write_file(c_file, open(in_file, 'r').read()) |
write_file(h_file, '#define NAME "%s"\n' % in_file) |