From 105616cfc3a611db7ba589ef5d644cc6af5bb324 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 19 Feb 2006 20:50:59 +0000 Subject: [PATCH] sasl not support msg using debug. Dimitur, maybe it is time to remove blocking versions from svn? --- src/common/xmpp/auth_nb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/xmpp/auth_nb.py b/src/common/xmpp/auth_nb.py index 4dd9617cd..4610cb716 100644 --- a/src/common/xmpp/auth_nb.py +++ b/src/common/xmpp/auth_nb.py @@ -65,7 +65,7 @@ class SASL(PlugIn): ''' Used to determine if server supports SASL auth. Used internally. ''' if not feats.getTag('mechanisms', namespace=NS_SASL): self.startsasl='not-supported' - print >> sys.stderr, 'SASL not supported by server' + self.DEBUG('SASL not supported by server', 'error') return mecs=[] for mec in feats.getTag('mechanisms', namespace=NS_SASL).getTags('mechanism'): @@ -74,7 +74,7 @@ class SASL(PlugIn): self._owner.RegisterHandler('failure', self.SASLHandler, xmlns=NS_SASL) self._owner.RegisterHandler('success', self.SASLHandler, xmlns=NS_SASL) if "DIGEST-MD5" in mecs: - node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'DIGEST-MD5'}) + node=Node('auth',attrs={'xmlns': NS_SASL, 'mechanism': 'DIGEST-MD5'}) elif "PLAIN" in mecs: sasl_data='%s\x00%s\x00%s' % (self.username+'@' + self._owner.Server, self.username, self.password)