summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-31 03:36:25 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-31 03:36:25 -0700
commit82a3918aa475dbd4abc8941b8c5601f61ab2e508 (patch)
tree4c6658ef2df5e48c66501fc75d10bede059ec43c /sleekxmpp/xmlstream/stanzabase.py
parentcff3079a04f9f12da5530c68d385d0c0f03af69e (diff)
downloadslixmpp-82a3918aa475dbd4abc8941b8c5601f61ab2e508.tar.gz
slixmpp-82a3918aa475dbd4abc8941b8c5601f61ab2e508.tar.bz2
slixmpp-82a3918aa475dbd4abc8941b8c5601f61ab2e508.tar.xz
slixmpp-82a3918aa475dbd4abc8941b8c5601f61ab2e508.zip
Scheduler waits too longer, and pubsubstate registration was backwards
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index c40922be..64020c8f 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -78,6 +78,9 @@ class ElementBase(tostring.ToString):
def __iter__(self):
self.idx = 0
return self
+
+ def __bool__(self):
+ return True
def __next__(self):
self.idx += 1