diff options
author | Nathan Fritz <nathan@andyet.net> | 2010-04-07 23:10:32 -0700 |
---|---|---|
committer | Nathan Fritz <nathan@andyet.net> | 2010-04-07 23:10:32 -0700 |
commit | ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 (patch) | |
tree | d41aebdee8c6e6ed58850c7de006e00e405b9ddb /sleekxmpp/plugins/gmail_notify.py | |
parent | 935ee4d14e80899fa45bb3d9296e123f642cc413 (diff) | |
download | slixmpp-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/plugins/gmail_notify.py')
-rw-r--r-- | sleekxmpp/plugins/gmail_notify.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |