Always read binary files with mode rb

This commit is contained in:
Tom Payne
2014-02-23 13:51:22 +01:00
parent 3aedca7bd6
commit 48b85316bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ def main(argv):
output = open(options.output, 'w')
else:
output = sys.stdout
output.write(pystache.render(open(options.template).read(), context))
output.write(pystache.render(open(options.template, 'rb').read(), context))
if __name__ == '__main__':