mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
remove unnecessary partial call
This commit is contained in:
parent
553941c98d
commit
b752b59d92
@ -35,8 +35,8 @@ def _get_highlighter(style_name='solarized'):
|
||||
|
||||
|
||||
def prettify_http(headers, style_name='solarized'):
|
||||
highlight = partial(_get_highlighter(style_name), lexer=HTTPLexer())
|
||||
return highlight(headers)
|
||||
highlight = _get_highlighter(style_name)
|
||||
return highlight(headers, lexer=HTTPLexer())
|
||||
|
||||
|
||||
def prettify_body(content, content_type, style_name='solarized'):
|
||||
|
Loading…
Reference in New Issue
Block a user