From 32b214c4b1a561294c6a200121d70898b6ef6406 Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Wed, 3 Dec 2014 10:48:53 +0000 Subject: [PATCH] Removed progress characters, they just look stupid in Travis console --- workspace_tools/toolchains/__init__.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/workspace_tools/toolchains/__init__.py b/workspace_tools/toolchains/__init__.py index e9a5c8ec57..54c8508278 100644 --- a/workspace_tools/toolchains/__init__.py +++ b/workspace_tools/toolchains/__init__.py @@ -37,29 +37,17 @@ CPU_COUNT_MIN = 1 def print_notify(event, silent=False): """ Default command line notification """ - if "counter" not in print_notify.__dict__: - print_notify.counter = event['type'] - if event['type'] in ['info', 'debug']: - if silent: - if print_notify.counter == 'progress': - print print event['message'] elif event['type'] == 'cc': event['severity'] = event['severity'].title() event['file'] = basename(event['file']) - if silent: - if print_notify.counter == 'progress': - print print '[%(severity)s] %(file)s@%(line)s: %(message)s' % event elif event['type'] == 'progress': if not silent: print '%s: %s' % (event['action'].title(), basename(event['file'])) - else: - sys.stdout.write('-' if event['action'].title() == 'Copy' else '=') - print_notify.counter = event['type'] def print_notify_verbose(event, silent=False): """ Default command line notification with more verbose mode