From 697b3e539e061aefcf8690849f3890b34d3571b5 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sat, 13 May 2017 15:26:24 +0200 Subject: [PATCH] Rename component to node in console plugin for more consistency with naming elsewhere. --- bonobo/ext/console/plugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bonobo/ext/console/plugin.py b/bonobo/ext/console/plugin.py index 63497f9..d76b3af 100644 --- a/bonobo/ext/console/plugin.py +++ b/bonobo/ext/console/plugin.py @@ -73,20 +73,20 @@ class ConsoleOutputPlugin(Plugin): def write(context, prefix='', rewind=True, append=None, debug=False, profile=False): t_cnt = len(context) - for i, component in enumerate(context): - if component.alive: + for i, node in enumerate(context): + if node.alive: _line = ''.join( ( Fore.BLACK, '({})'.format(i + 1), Style.RESET_ALL, ' ', Style.BRIGHT, '+', Style.RESET_ALL, ' ', - component.name, ' ', component.get_statistics_as_string(debug=debug, + node.name, ' ', node.get_statistics_as_string(debug=debug, profile=profile), Style.RESET_ALL, ' ', ) ) else: _line = ''.join( ( - Fore.BLACK, '({})'.format(i + 1), ' - ', component.name, ' ', - component.get_statistics_as_string(debug=debug, profile=profile), Style.RESET_ALL, ' ', + Fore.BLACK, '({})'.format(i + 1), ' - ', node.name, ' ', + node.get_statistics_as_string(debug=debug, profile=profile), Style.RESET_ALL, ' ', ) ) print(prefix + _line + '\033[0K')