diff options
author | Tom Nichols <tmnichols@gmail.com> | 2010-07-07 15:18:59 -0400 |
---|---|---|
committer | Tom Nichols <tmnichols@gmail.com> | 2010-07-07 15:18:59 -0400 |
commit | fc952efae99f8cb1a578f3f6aa3a4be39ab30f71 (patch) | |
tree | c81f3b1e03a63844e343d4a05b764332cc7655c8 /sleekxmpp/plugins/gmail_notify.py | |
parent | f7273affc552fbe38cc7e00095de8d3378619010 (diff) | |
download | slixmpp-fc952efae99f8cb1a578f3f6aa3a4be39ab30f71.tar.gz slixmpp-fc952efae99f8cb1a578f3f6aa3a4be39ab30f71.tar.bz2 slixmpp-fc952efae99f8cb1a578f3f6aa3a4be39ab30f71.tar.xz slixmpp-fc952efae99f8cb1a578f3f6aa3a4be39ab30f71.zip |
removed unused and redundant 'makeIq...' methods from basexmpp; cleaned up the (few\!) plugins that actually used them.
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 b709ef69..e49815c6 100644 --- a/sleekxmpp/plugins/gmail_notify.py +++ b/sleekxmpp/plugins/gmail_notify.py @@ -50,7 +50,7 @@ class gmail_notify(base.base_plugin): iq = self.xmpp.makeIqGet() iq.attrib['from'] = self.xmpp.fulljid iq.attrib['to'] = self.xmpp.jid - self.xmpp.makeIqQuery(iq, 'google:mail:notify') + iq.append(ET.Element('{google:mail:notify}query')) emails = iq.send() mailbox = emails.find('{google:mail:notify}mailbox') total = int(mailbox.get('total-matched', 0)) |