From ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 7 Apr 2010 23:10:32 -0700 Subject: replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree --- sleekxmpp/plugins/gmail_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/gmail_notify.py') diff --git a/sleekxmpp/plugins/gmail_notify.py b/sleekxmpp/plugins/gmail_notify.py index 330bf2a5..b709ef69 100644 --- a/sleekxmpp/plugins/gmail_notify.py +++ b/sleekxmpp/plugins/gmail_notify.py @@ -51,7 +51,7 @@ class gmail_notify(base.base_plugin): iq.attrib['from'] = self.xmpp.fulljid iq.attrib['to'] = self.xmpp.jid self.xmpp.makeIqQuery(iq, 'google:mail:notify') - emails = self.xmpp.send(iq, self.xmpp.makeIq(self.xmpp.id)) + emails = iq.send() mailbox = emails.find('{google:mail:notify}mailbox') total = int(mailbox.get('total-matched', 0)) logging.info("%s New Gmail Messages" % total) -- cgit v1.2.3