*** empty log message ***

This commit is contained in:
Jesse Schell 2001-03-21 22:22:14 +00:00
parent b6d8f2a81a
commit 22fd93e50f

View File

@ -121,10 +121,14 @@ class Messenger:
# If this object was only accepting this event once, # If this object was only accepting this event once,
# remove it from the dictionary # remove it from the dictionary
if not persistent: if not persistent:
del acceptorDict[object] # We need to check this because the apply above might
# If this dictionary is now empty, remove the event # have done an ignore.
# entry from the Messenger alltogether if acceptorDict.has_key(object):
if (len(acceptorDict) == 0): del acceptorDict[object]
# If this dictionary is now empty, remove the event
# entry from the Messenger alltogether
if ((len(acceptorDict) == 0) and
(self.dict.has_key(event))):
del self.dict[event] del self.dict[event]
def clear(self): def clear(self):