During encryption password is converted to buffer (instead of

bytearray), and that is causing the issue in Python 2.

This was regress of commit-id: 37e2e1d24b
This commit is contained in:
Ashesh Vashi 2016-06-07 13:26:26 +05:30
parent 37e2e1d24b
commit 7d08e42bbe

View File

@ -1049,7 +1049,10 @@ class ServerManager(object):
res = dict()
res['sid'] = self.sid
res['password'] = self.password.decode('utf-8')
if hasattr(self.password, 'decode'):
res['password'] = self.password.decode('utf-8')
else:
res['password'] = str(self.password)
connections = res['connections'] = dict()