Remove call to encode, str expected, not bytes (py3)

This commit is contained in:
Guewen Baconnier committed 2017-11-15 16:15:39 +01:00
1 parent 08329c91d2
commit ea44b4fd15
1 file changed
-2
-2
View File
@@ -32,8 +32,6 @@ class RedisSessionStore(SessionStore):
)
def build_key(self, sid):
if isinstance(sid, str):
sid = sid.encode('utf-8')
return '%s%s' % (self.prefix, sid)
def save(self, session):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.