summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-19 01:03:27 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-19 01:03:27 -0700
commit212660091f155255ee9f45cdfca7969d8313309c (patch)
treed796fe3a72f834f06fda39a4b5d784eea7e3ec5c /sleekxmpp/xmlstream/stanzabase.py
parent35c157f9d8c9bb2f59d17ec68b771ffcffb7931d (diff)
downloadslixmpp-212660091f155255ee9f45cdfca7969d8313309c.tar.gz
slixmpp-212660091f155255ee9f45cdfca7969d8313309c.tar.bz2
slixmpp-212660091f155255ee9f45cdfca7969d8313309c.tar.xz
slixmpp-212660091f155255ee9f45cdfca7969d8313309c.zip
added pubsub tests and fixed match on iterator error
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 6ed5cbd0..f72aa6e2 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -120,6 +120,8 @@ class ElementBase(tostring.ToString):
if tagargs[0] not in (self.plugins, self.plugin_attrib): return False
founditerable = False
for iterable in self.iterables:
+ if nodes[1:] == []:
+ break
founditerable = iterable.match(nodes[1:])
if founditerable: break;
for evals in tagargs[1:]: