Skip to content
Myr

merge cleanups

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 e4c85b3 · Browse files · 2 files+4 added−6 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+4 added−6 removed

  • other:+4 added−6 removed

2 files+4 added−6 removed

modified:requests/api.py+2 added-5 removed
44 unmodified lines
4546 method = str(method).upper()47 config = get_config(config)4849 cookies = cookiejar_from_dict(cookies if cookies is not None else dict())5051 cookies = cookiejar_from_dict(cookies)5249 # cookies = cookiejar_from_dict(cookies if cookies is not None else dict())50 # cookies = cookiejar_from_dict(cookies)5152 # Expand header values53 if headers:
14 unmodified lines
68 allow_redirects=allow_redirects,69 proxies=proxies or config.get('proxies'),70 _pools=_pools71 )75 7273 hooks = setup_hooks(hooks if hooks is not None else dict())7475 # Arguments manipulation hook.76 args = dispatch_hooks(hooks['args'], args)
91 unmodified lines
modified:requests/models.py+2 added-1 removed
88 unmodified lines
8990 #: :class:`AuthObject` to attach to :class:`Request <Request>`.91 self.auth = auth9293 #: CookieJar to attach to :class:`Request <Request>`.93 #: CookieDict to attach to :class:`Request <Request>`.94 self.cookies = cookies9596 #: True if Request has been sent.97 self.sent = False
217 unmodified lines
315 # Skip if 'cookie' header is explicitly set.316 if 'cookie' not in self.headers:317318 # Simple cookie with our dict.319 # TODO: Multi-value headers.320 c = SimpleCookie()321 c.load(self.cookies)322323 # Turn it into a header.
193 unmodified lines