# HG changeset patch # User Julien Cristau # Date 1443624606 -7200 # Node ID c5b048ae4df5e2e21606cfb729d3b91115718cec # Parent 8d49849ec2a6fb18b7d8fe8220255bcbe4f14b33 [server] don't convert user.login to bytes to generate sessionid diff -r 8d49849ec2a6 -r c5b048ae4df5 server/session.py --- a/server/session.py Wed Sep 30 16:14:29 2015 +0200 +++ b/server/session.py Wed Sep 30 16:50:06 2015 +0200 @@ -1006,7 +1006,7 @@ """ def __init__(self, user, repo, cnxprops=None, _id=None): - self.sessionid = _id or make_uid(unormalize(user.login).encode('UTF8')) + self.sessionid = _id or make_uid(unormalize(user.login)) self.user = user # XXX repoapi: deprecated and store only a login. self.repo = repo self.vreg = repo.vreg