1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Start using dict comprehensions

This commit is contained in:
Jakub Roztocil
2017-12-28 18:15:17 +01:00
parent ec899d70b7
commit 7f5fd130c5
5 changed files with 11 additions and 12 deletions

View File

@@ -166,7 +166,7 @@ def get_requests_kwargs(args, base_headers=None):
'cert': cert,
'timeout': args.timeout,
'auth': args.auth,
'proxies': dict((p.key, p.value) for p in args.proxy),
'proxies': {p.key: p.value for p in args.proxy},
'files': args.files,
'allow_redirects': args.follow,
'params': args.params,