Skip to content
Myr

refactor: prefer dictionary comphrension to loop (#6187)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Kirsche · committed by GitHub · parent 2ecdb68 · Browse files · 1 file+1 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−5 removed

  • other:+1 added−5 removed

1 file+1 added−5 removed

modified:requests/utils.py+1 added-5 removed
464 unmodified lines
465 :param cj: CookieJar object to extract cookies from.466 :rtype: dict467 """468469 cookie_dict = {}470471 for cookie in cj:472 cookie_dict[cookie.name] = cookie.value473469 cookie_dict = {cookie.name: cookie.value for cookie in cj}470 return cookie_dict471472473def add_dict_to_cookiejar(cj, cookie_dict):
617 unmodified lines