need to write in binary mode
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user