summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-07 23:10:32 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-07 23:10:32 -0700
commitecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 (patch)
treed41aebdee8c6e6ed58850c7de006e00e405b9ddb /sleekxmpp/basexmpp.py
parent935ee4d14e80899fa45bb3d9296e123f642cc413 (diff)
downloadslixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.gz
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.bz2
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.tar.xz
slixmpp-ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65.zip
replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index 34b8d764..585ecacb 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -14,6 +14,7 @@ from . xmlstream.matcher.xmlmask import MatchXMLMask
from . xmlstream.matcher.many import MatchMany
from . xmlstream.handler.xmlcallback import XMLCallback
from . xmlstream.handler.xmlwaiter import XMLWaiter
+from . xmlstream.handler.waiter import Waiter
from . xmlstream.handler.callback import Callback
from . import plugins
from . stanza.message import Message
@@ -138,7 +139,7 @@ class basexmpp(object):
mask = mask.xml
data = str(data)
if mask is not None:
- waitfor = XMLWaiter('SendWait_%s' % self.getNewId(), MatchXMLMask(mask))
+ waitfor = Waiter('SendWait_%s' % self.getNewId(), MatchXMLMask(mask))
self.registerHandler(waitfor)
self.sendRaw(data)
if mask is not None: