Skip to content

Commit

Permalink
Merge pull request #962 from rizar/change_pickle_protocol
Browse files Browse the repository at this point in the history
Use compression for saving separately
  • Loading branch information
dwf committed Jan 28, 2016
2 parents fa3a290 + 249cae2 commit 7510326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/extensions/saveload.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def do(self, callback_name, *args):
filenames = self.save_separately_filenames(path)
for attribute in self.save_separately:
secure_dump(getattr(self.main_loop, attribute),
filenames[attribute], cPickle.dump)
filenames[attribute], cPickle.dump,
protocol=cPickle.HIGHEST_PROTOCOL)
except Exception:
path = None
raise
Expand Down

0 comments on commit 7510326

Please sign in to comment.