Update __init__.py

This commit is contained in:
Max Zwiessele 2015-11-04 19:24:25 +00:00
parent 1fe037c5f9
commit eda71a2cc1

View file

@ -55,9 +55,7 @@ def load(file_or_path):
import pickle
if isinstance(file_or_path, str):
with open(file_or_path, 'rb') as f:
u = pickle._Unpickler(f)
u.encoding = 'latin1'
m = u.load()
m = pickle.load(f)
else:
m = pickle.load(file_or_path)
except ImportError: