From 26f16acc9ca0c937ea0dc20338d359bf8df6af87 Mon Sep 17 00:00:00 2001 From: tangstad Date: Sat, 22 Apr 2006 18:11:31 +0000 Subject: [PATCH] Made sure pickling use protocol 2 to make it faster and the files smaller (binary). --- workflows/go_workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/go_workflow.py b/workflows/go_workflow.py index a93040d..66701fd 100644 --- a/workflows/go_workflow.py +++ b/workflows/go_workflow.py @@ -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()