summaryrefslogtreecommitdiff
path: root/requests/utils.py
diff options
context:
space:
mode:
authorNate Prewitt <Nate.Prewitt@gmail.com>2016-10-27 13:17:41 -0600
committerNate Prewitt <Nate.Prewitt@gmail.com>2016-10-27 13:17:41 -0600
commitdfd85f2099117adf8058d3f71e196cbfc5254760 (patch)
treec7bb2e45c0e19ffc3cf8d3625630df8aafdf4c3b /requests/utils.py
parentb8f4c7c7ff82dc4a2d32b1fedd6339d332ac5e90 (diff)
downloadpython-requests-dfd85f2099117adf8058d3f71e196cbfc5254760.tar.gz
make add_dict_to_cookiejar cookielib.CookieJar compatible
Diffstat (limited to 'requests/utils.py')
-rw-r--r--requests/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/requests/utils.py b/requests/utils.py
index 3b43ad7d..3404caed 100644
--- a/requests/utils.py
+++ b/requests/utils.py
@@ -331,9 +331,7 @@ def add_dict_to_cookiejar(cj, cookie_dict):
:rtype: CookieJar
"""
- cj2 = cookiejar_from_dict(cookie_dict)
- cj.update(cj2)
- return cj
+ return cookiejar_from_dict(cookie_dict, cj)
def get_encodings_from_content(content):