Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Made sure pickling use protocol 2 to make it faster and the files smaller (binary).

This commit is contained in:
Truls Alexander Tangstad 2006-04-22 18:11:31 +00:00
parent 553bfbe1ae
commit 26f16acc9c
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class DatasetSaveFunction(Function):
try:
if chooser.run() == gtk.RESPONSE_OK:
cPickle.dump(data, open(chooser.get_filename(), "w"))
cPickle.dump(data, open(chooser.get_filename(), "w"), protocol=2)
logger.log("notice", "Saved data to %r." % chooser.get_filename())
finally:
chooser.destroy()