diff --git a/requests/utils.py b/requests/utils.py index a367417f8e..f85f1bc614 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -466,11 +466,7 @@ def dict_from_cookiejar(cj): :rtype: dict """ - cookie_dict = {} - - for cookie in cj: - cookie_dict[cookie.name] = cookie.value - + cookie_dict = {cookie.name: cookie.value for cookie in cj} return cookie_dict