From 2b5b79b114423f8d68c992d1bd0bb251e2dfba2b Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 4 Jan 2018 18:38:01 +0100 Subject: [style] pep8 --- src/leap/bitmask/cli/bitmask_cli.py | 4 ++-- src/leap/bitmask/cli/command.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/leap/bitmask/cli') diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py index eafdb1e4..40f119e9 100755 --- a/src/leap/bitmask/cli/bitmask_cli.py +++ b/src/leap/bitmask/cli/bitmask_cli.py @@ -152,8 +152,8 @@ def execute(): timeout=0.1, printer=_null_printer, errb=lambda: cli.start(args)) except Exception, e: - print (Fore.RED + "ERROR: " + Fore.RESET + - "%s" % str(e)) + print(Fore.RED + "ERROR: " + Fore.RESET + + "%s" % str(e)) defer.returnValue('') cli.data = [] diff --git a/src/leap/bitmask/cli/command.py b/src/leap/bitmask/cli/command.py index fd32ab95..a70b2d43 100644 --- a/src/leap/bitmask/cli/command.py +++ b/src/leap/bitmask/cli/command.py @@ -166,15 +166,15 @@ class Command(object): print(json.dumps(obj, indent=2)) elif not obj['error']: if 'result' not in obj: - print (Fore.RED + 'ERROR: malformed response, expected' - ' obj["result"]' + Fore.RESET) + print(Fore.RED + 'ERROR: malformed response, expected' + ' obj["result"]' + Fore.RESET) elif obj['result'] is None: - print (Fore.RED + 'ERROR: empty response. Check logs.' + - Fore.RESET) + print(Fore.RED + 'ERROR: empty response. Check logs.' + + Fore.RESET) else: return printer(obj['result']) else: - print Fore.RED + 'ERROR: ' + '%s' % obj['error'] + Fore.RESET + print(Fore.RED + 'ERROR: ' + '%s' % obj['error'] + Fore.RESET) def _timeout_handler(self, failure, errb): if failure.trap(ZmqRequestTimeoutError) == ZmqRequestTimeoutError: -- cgit v1.2.3