[pickling] wb as write parameter

This commit is contained in:
mzwiessele 2014-08-19 10:37:48 -07:00
parent 80adaed616
commit 22de3ab676

View file

@ -191,7 +191,7 @@ class Pickleable(object):
"""
import cPickle as pickle
if isinstance(f, str):
with open(f, 'w') as f:
with open(f, 'wb') as f:
pickle.dump(self, f, protocol)
else:
pickle.dump(self, f, protocol)