mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-10-21 13:31:19 +00:00
Remove call to encode, str expected, not bytes (py3)
This commit is contained in:
1 parent
08329c91d2
commit
ea44b4fd15
1 file changed
-2
@@ -32,8 +32,6 @@ class RedisSessionStore(SessionStore):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def build_key(self, sid):
|
def build_key(self, sid):
|
||||||
if isinstance(sid, str):
|
|
||||||
sid = sid.encode('utf-8')
|
|
||||||
return '%s%s' % (self.prefix, sid)
|
return '%s%s' % (self.prefix, sid)
|
||||||
|
|
||||||
def save(self, session):
|
def save(self, session):
|
||||||
|
|||||||