1 class Notifier(object):
2 """Give notification"""
4 self
.__notifyList
= set()
7 self
.__notifyList
.add(x
)
9 def removeNotif(self
,x
):
10 self
.__notifyList
.remove(x
)
13 tempNotifyList
= list(self
.__notifyList
)
14 for x
in tempNotifyList
:
18 class Notifiable(object):
19 """Receive notification"""