Skip to content

Commit

Permalink
tools/make-frozen.py: Open files in binary mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sokolovsky committed May 29, 2015
1 parent a8e7c03 commit c02dc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/make-frozen.py
Expand Up @@ -49,8 +49,8 @@ def module_name(f):
for f, st in modules:
m = module_name(f)
print('"%s\\0"' % m)
data = open(sys.argv[1] + "/" + f).read()
data = repr(data)[1:-1]
data = open(sys.argv[1] + "/" + f, "rb").read()
data = repr(data)[2:-1]
data = data.replace('"', '\\"')
print('"%s"' % data)
print("};")

0 comments on commit c02dc8b

Please sign in to comment.