summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/gmail_notify.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/gmail_notify.py')
-rw-r--r--slixmpp/plugins/gmail_notify.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/slixmpp/plugins/gmail_notify.py b/slixmpp/plugins/gmail_notify.py
index f4cf188c..a56ca699 100644
--- a/slixmpp/plugins/gmail_notify.py
+++ b/slixmpp/plugins/gmail_notify.py
@@ -21,7 +21,7 @@ class GmailQuery(ElementBase):
namespace = 'google:mail:notify'
name = 'query'
plugin_attrib = 'gmail'
- interfaces = set(('newer-than-time', 'newer-than-tid', 'q', 'search'))
+ interfaces = {'newer-than-time', 'newer-than-tid', 'q', 'search'}
def get_search(self):
return self['q']
@@ -37,8 +37,8 @@ class MailBox(ElementBase):
namespace = 'google:mail:notify'
name = 'mailbox'
plugin_attrib = 'mailbox'
- interfaces = set(('result-time', 'total-matched', 'total-estimate',
- 'url', 'threads', 'matched', 'estimate'))
+ interfaces = {'result-time', 'total-matched', 'total-estimate',
+ 'url', 'threads', 'matched', 'estimate'}
def get_threads(self):
threads = []
@@ -58,9 +58,9 @@ class MailThread(ElementBase):
namespace = 'google:mail:notify'
name = 'mail-thread-info'
plugin_attrib = 'thread'
- interfaces = set(('tid', 'participation', 'messages', 'date',
- 'senders', 'url', 'labels', 'subject', 'snippet'))
- sub_interfaces = set(('labels', 'subject', 'snippet'))
+ interfaces = {'tid', 'participation', 'messages', 'date',
+ 'senders', 'url', 'labels', 'subject', 'snippet'}
+ sub_interfaces = {'labels', 'subject', 'snippet'}
def get_senders(self):
senders = []
@@ -75,7 +75,7 @@ class MailSender(ElementBase):
namespace = 'google:mail:notify'
name = 'sender'
plugin_attrib = 'sender'
- interfaces = set(('address', 'name', 'originator', 'unread'))
+ interfaces = {'address', 'name', 'originator', 'unread'}
def get_originator(self):
return self.xml.attrib.get('originator', '0') == '1'