Skip to content
Myr

update 'merge_cookies'

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

authored by daftshady · committed by daftshady · parent e40c163 · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:requests/cookies.py+2 added-3 removed
431 unmodified lines
432 if not isinstance(cookiejar, cookielib.CookieJar):433 raise ValueError('You can only merge into CookieJar')434 435 if isinstance(cookies, dict):436 cookiejar.update(437 cookiejar_from_dict(438 cookies, cookiejar=cookiejar, overwrite=False))436 cookiejar = cookiejar_from_dict(437 cookies, cookiejar=cookiejar, overwrite=False)438 elif isinstance(cookies, cookielib.CookieJar):439 cookiejar.update(cookies)440441 return cookiejar