diff --git a/httpie/cli.py b/httpie/cli.py index a0ec34fb..91d53472 100644 --- a/httpie/cli.py +++ b/httpie/cli.py @@ -213,7 +213,7 @@ output_processing.add_argument( """.format( default=DEFAULT_STYLE, available='\n'.join( - '{0}{1}'.format(8*' ', line.strip()) + '{0}{1}'.format(8 * ' ', line.strip()) for line in wrap(', '.join(sorted(AVAILABLE_STYLES)), 60) ).rstrip(), ) diff --git a/httpie/core.py b/httpie/core.py index 31e5c48b..7d7cca5e 100644 --- a/httpie/core.py +++ b/httpie/core.py @@ -243,7 +243,7 @@ def main(args=sys.argv[1:], env=Environment(), custom_log_error=None): except requests.TooManyRedirects: exit_status = ExitStatus.ERROR_TOO_MANY_REDIRECTS log_error('Too many redirects (--max-redirects=%s).', - parsed_args.max_redirects) + parsed_args.max_redirects) except Exception as e: # TODO: Further distinction between expected and unexpected errors. msg = str(e) diff --git a/tests/test_cli.py b/tests/test_cli.py index c9746ae2..fa20117c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -108,8 +108,8 @@ class TestItemParsing: # Parsed file fields assert 'file' in items.files - assert (items.files['file'][1].read().strip().decode('utf8') - == FILE_CONTENT) + assert (items.files['file'][1].read().strip(). + decode('utf8') == FILE_CONTENT) def test_multiple_file_fields_with_same_field_name(self): items = input.parse_items([