need to write in binary mode
This commit is contained in:
parent
aae663d518
commit
ea6b0ddb1f
@ -1,5 +1,5 @@
|
|||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
def output (data, destination):
|
def output (data, destination):
|
||||||
with open(destination, "w") as out_file:
|
with open(destination, "wb") as out_file:
|
||||||
pickle.dump(data, out_file)
|
pickle.dump(data, out_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user