From d1f4af7ec2f46ed945929c639d21ed6a60ffc282 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Wed, 4 Nov 2015 19:10:57 +0000 Subject: [PATCH] Update __init__.py --- GPy/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GPy/__init__.py b/GPy/__init__.py index d044b2c0..62cb7726 100644 --- a/GPy/__init__.py +++ b/GPy/__init__.py @@ -46,9 +46,10 @@ def load(file_or_path): import cPickle as pickle if isinstance(file_or_path, basestring): with open(file_or_path, 'rb') as f: - m = pickle.load(f) + u = pickle._Unpickler(f) + u.encoding = 'latin1' + m = u.load() else: - m = pickle.load(file_or_path) except: import pickle if isinstance(file_or_path, str):