From f2e2dc9ed9d0d3ed04f7347846889dd85138b23c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 30 Dec 2011 04:24:11 +0100 Subject: [PATCH] Always use the latest pickle protocol when freezing sessions. --- wrw/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/session.py b/wrw/session.py index 28c1577..c45090a 100644 --- a/wrw/session.py +++ b/wrw/session.py @@ -166,7 +166,7 @@ class backeddb(db): raise KeyError() def freeze(self, sess): - self.backdb[sess.id] = pickle.dumps(sess) + self.backdb[sess.id] = pickle.dumps(sess, -1) sess.frozen() class dirback(object): -- 2.11.0