Skip to content

Commit

Permalink
model-generator: encode string before writing to file
Browse files Browse the repository at this point in the history
  • Loading branch information
yogo1212 committed Dec 20, 2015
1 parent 19e26c5 commit 857eda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_compressor_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def main():
print(out)
else:
with open(args.output, "wb") as f:
f.write(out)
f.write(out.encode())
log("done.")

if __name__ == "__main__":
Expand Down

0 comments on commit 857eda6

Please sign in to comment.