Add argument names to __init__() calls in event_handler_main.py

This commit is contained in:
Kristóf Tóth 2018-03-09 08:50:54 +01:00
parent 9e4fe87d84
commit c84b526b03

View File

@ -9,10 +9,10 @@ log = logging.getLogger(__name__)
if __name__ == '__main__': if __name__ == '__main__':
ide = SourceCodeEventHandler('webide', tfwenv.WEBIDE_WD, ['__pycache__']) ide = SourceCodeEventHandler(key='webide', directory=tfwenv.WEBIDE_WD, exclude=['__pycache__'])
terminado = TerminadoEventHandler('shell') terminado = TerminadoEventHandler(key='shell')
terminado.historymonitor.subscribe_callback(lambda hist: log.debug('User executed command: "{}"'.format(hist[-1]))) terminado.historymonitor.subscribe_callback(callback=lambda hist: log.debug('User executed command: "{}"'.format(hist[-1])))
processmanager = ProcessManagingEventHandler('processmanager', ide.monitor) processmanager = ProcessManagingEventHandler(key='processmanager', dirmonitor=ide.monitor)
eventhandlers = {ide, terminado, processmanager} eventhandlers = {ide, terminado, processmanager}
try: try: