From ea6b0ddb1ff9a40f02fb744d3eb19681af526052 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 27 Nov 2016 01:58:47 -0600 Subject: [PATCH] need to write in binary mode --- tge/outputters/pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tge/outputters/pickle.py b/tge/outputters/pickle.py index cf9d5c1..92e37f4 100644 --- a/tge/outputters/pickle.py +++ b/tge/outputters/pickle.py @@ -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)