From: Fredrik Tolf Date: Fri, 30 Dec 2011 03:24:11 +0000 (+0100) Subject: Always use the latest pickle protocol when freezing sessions. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=f2e2dc9ed9d0d3ed04f7347846889dd85138b23c;p=wrw.git Always use the latest pickle protocol when freezing sessions. --- 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):