Always use the latest pickle protocol when freezing sessions.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 30 Dec 2011 03:24:11 +0000 (04:24 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 30 Dec 2011 03:24:11 +0000 (04:24 +0100)
wrw/session.py

index 28c1577..c45090a 100644 (file)
@@ -166,7 +166,7 @@ class backeddb(db):
             raise KeyError()
 
     def freeze(self, sess):
             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):
         sess.frozen()
 
 class dirback(object):