diff options
author | Kali Kaneko <kali@leap.se> | 2018-01-04 18:38:01 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-06 19:57:56 +0100 |
commit | 2b5b79b114423f8d68c992d1bd0bb251e2dfba2b (patch) | |
tree | e18fb30a115cf5358b58727e1e047833ed81cd26 /src/leap/bitmask/cli | |
parent | 501379ee09c3510d1737d6292a2dd5732c19dfef (diff) |
[style] pep8
Diffstat (limited to 'src/leap/bitmask/cli')
-rwxr-xr-x | src/leap/bitmask/cli/bitmask_cli.py | 4 | ||||
-rw-r--r-- | src/leap/bitmask/cli/command.py | 10 |
2 files changed, 7 insertions, 7 deletions
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: |