diff options
Diffstat (limited to 'src/common/xmpp/browser.py')
-rw-r--r-- | src/common/xmpp/browser.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/xmpp/browser.py b/src/common/xmpp/browser.py index 65fed4280..a23b6404f 100644 --- a/src/common/xmpp/browser.py +++ b/src/common/xmpp/browser.py @@ -96,7 +96,7 @@ class Browser(PlugIn): self._owner.UnregisterHandler('iq',self._DiscoveryHandler,typ='get',ns=NS_DISCO_INFO) self._owner.UnregisterHandler('iq',self._DiscoveryHandler,typ='get',ns=NS_DISCO_ITEMS) - def _traversePath(self,node,jid,set=0): + def _traversePath(self,node,jid,set_=0): """ Returns dictionary and key or None,None None - root node (w/o "node" attribute) /a/b/c - node @@ -105,7 +105,7 @@ class Browser(PlugIn): get returns '' or None as the key or None as the dict. Used internally.""" if jid in self._handlers: cur=self._handlers[jid] - elif set: + elif set_: self._handlers[jid]={} cur=self._handlers[jid] else: cur=self._handlers[''] @@ -113,10 +113,10 @@ class Browser(PlugIn): else: node=node.replace('/',' /').split('/') for i in node: if i!='' and i in cur: cur=cur[i] - elif set and i!='': cur[i]={dict:cur,str:i}; cur=cur[i] - elif set or '' in cur: return cur,'' + elif set_ and i!='': cur[i]={dict:cur,str:i}; cur=cur[i] + elif set_ or '' in cur: return cur,'' else: return None,None - if 1 in cur or set: return cur,1 + if 1 in cur or set_: return cur,1 raise "Corrupted data" def setDiscoHandler(self,handler,node='',jid=''): |