need to write in binary mode

This commit is contained in:
Adrian Malacoda 2016-11-27 01:58:47 -06:00
parent aae663d518
commit ea6b0ddb1f

View File

@ -1,5 +1,5 @@
import pickle
def output (data, destination):
with open(destination, "w") as out_file:
with open(destination, "wb") as out_file:
pickle.dump(data, out_file)