Readability, maintainability, and usability go up.
+* Fixed regression created in 7.0 where PeriodicCommandFixedDelay would only
+ cause the first command to be scheduled, but not subsequent ones.
def _dispatcher(self, connection, event):
- Dispatch event
+ Dispatch event.
log.debug("_dispatcher: %s", event.type)
- getattr(self, m)(connection, event)
+ do_nothing = lambda c, e: None
+ method = getattr(self, "on_" + event.type, do_nothing)
+ method(connection, event)
def _dcc_disconnect(self, c, e):