use pickle protocol 2 for python2/3 compatibility
This commit is contained in:
parent
afc012ab63
commit
4e415fe4ab
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class SessionCache(object):
|
|||
conn, c = self.connect()
|
||||
c.execute('DELETE FROM session')
|
||||
values = {
|
||||
'value': pickle.dumps(session),
|
||||
'value': pickle.dumps(session, protocol=2),
|
||||
}
|
||||
c.execute('INSERT INTO session VALUES (:value)', values)
|
||||
conn.commit()
|
||||
|
|
Loading…
Reference in a new issue