mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 05:32:55 +00:00 
			
		
		
		
	Add argument names to __init__() calls in event_handler_main.py
This commit is contained in:
		@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user