Skip to content
Myr

cookie jar => cookies

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 182f92a · Browse files · 2 files+5 added−7 removed
This commit

State

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

Diff stats

2 files+5 added−7 removed

  • other:+5 added−7 removed

2 files+5 added−7 removed

modified:requests/api.py+1 added-1 removed
59 unmodified lines
60 url=url,61 data=data,62 params=params,63 headers=headers,64 cookiejar=cookies,64 cookies=cookies,65 files=files,66 auth=auth,67 timeout=timeout or config.settings.timeout,68 allow_redirects=allow_redirects,
91 unmodified lines
modified:requests/models.py+4 added-6 removed
33 unmodified lines
34 """3536 def __init__(self,37 url=None, headers=dict(), files=None, method=None, data=dict(),38 params=dict(), auth=None, cookiejar=None, timeout=None, redirect=False,38 params=dict(), auth=None, cookies=None, timeout=None, redirect=False,39 allow_redirects=False, proxies=None):4041 #: Float describ the timeout of the request.42 # (Use socket.setdefaulttimeout() as fallback)
46 unmodified lines
89 #: :class:`AuthObject` to attach to :class:`Request <Request>`.90 self.auth = auth9192 #: CookieJar to attach to :class:`Request <Request>`.93 self.cookiejar = cookiejar93 self.cookies = cookies9495 #: True if Request has been sent.96 self.sent = False97
199 unmodified lines
297 elif self.data:298 pass299300 # Setup cookies.301 # elif self.cookies:302 # pass301 elif self.cookies:302 pass303304 # req = _Request(url, data=self._enc_data, method=self.method)305304 # Only send the Request if new or forced.305 if (anyway) or (not self.sent):306307 try:
420 unmodified lines