Commit 02d3ece4 authored by Dan Pascu's avatar Dan Pascu

Use set literal

parent b3e6ce4c
...@@ -1333,7 +1333,7 @@ class ContactDetail(object): ...@@ -1333,7 +1333,7 @@ class ContactDetail(object):
handler(notification) handler(notification)
def _NH_AddressbookContactDidChange(self, notification): def _NH_AddressbookContactDidChange(self, notification):
if set(['icon', 'alternate_icon']).intersection(notification.data.modified): if {'icon', 'alternate_icon'}.intersection(notification.data.modified):
self.__dict__.pop('icon', None) self.__dict__.pop('icon', None)
self.__dict__.pop('pixmap', None) self.__dict__.pop('pixmap', None)
notification.center.post_notification('BlinkContactDetailDidChange', sender=self) notification.center.post_notification('BlinkContactDetailDidChange', sender=self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment