mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
Remove call to encode, str expected, not bytes (py3)
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user