Calls to .sign(session.sid) fail with a TypeError in Python 3; .sign requires a bytes value.
Simplest solution I see: at the top of the file, from itsdangerous import want_bytes, and replace all instances of .sign(session.sid) with .sign(want_bytes(session.sid)).
Calls to
.sign(session.sid)
fail with a TypeError in Python 3; .sign requires abytes
value.Simplest solution I see: at the top of the file,
from itsdangerous import want_bytes
, and replace all instances of.sign(session.sid)
with.sign(want_bytes(session.sid))
.