Browse Source

Added support for iterating over event handlers.

pyserial_fix
Scott Petersen 10 years ago
parent
commit
41c7258008
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      alarmdecoder/event/event.py

+ 3
- 0
alarmdecoder/event/event.py View File

@@ -31,6 +31,9 @@ class EventHandler(object):
self.event = event
self.obj = obj

def __iter__(self):
return iter(self._getfunctionlist())

def _getfunctionlist(self):

"""(internal use) """


Loading…
Cancel
Save