diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-09-05 07:38:29 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-09-05 07:38:29 +0000 |
commit | cb360c94797252291e2016bdc655063dd4670c66 (patch) | |
tree | 2bbe517bf05fddd0b1db5913169a51123f5f7f99 /sleekxmpp/componentxmpp.py | |
parent | 5593848490e5826ad07da591304ce6e67eb3afb5 (diff) | |
download | slixmpp-cb360c94797252291e2016bdc655063dd4670c66.tar.gz slixmpp-cb360c94797252291e2016bdc655063dd4670c66.tar.bz2 slixmpp-cb360c94797252291e2016bdc655063dd4670c66.tar.xz slixmpp-cb360c94797252291e2016bdc655063dd4670c66.zip |
* fixes
Diffstat (limited to 'sleekxmpp/componentxmpp.py')
-rwxr-xr-x | sleekxmpp/componentxmpp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/componentxmpp.py b/sleekxmpp/componentxmpp.py index 7f952413..ad897586 100755 --- a/sleekxmpp/componentxmpp.py +++ b/sleekxmpp/componentxmpp.py @@ -96,7 +96,7 @@ class ComponentXMPP(basexmpp, XMLStream): def start_stream_handler(self, xml): sid = xml.get('id', '') handshake = ET.Element('{jabber:component:accept}handshake') - handshake.text = hashlib.sha1.new(b"%s%s" % (sid, self.secret)).hexdigest().lower() + handshake.text = hashlib.sha1(bytes("%s%s" % (sid, self.secret), 'utf-8')).hexdigest().lower() self.send(handshake) def _handleHandshake(self, xml): |