Skip to content
Myr

add params to session merge attributes

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 492133b · Browse files · 1 file+4 added−2 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+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:requests/sessions.py+4 added-2 removed
47 unmodified lines
4849class Session(object):50 """A Requests session."""5152 __attrs__ = ['headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks']52 __attrs__ = ['headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks', 'params']535455 def __init__(self,56 headers=None,57 cookies=None,58 auth=None,59 timeout=None,60 proxies=None,61 hooks=None):61 hooks=None,62 params=None):6364 self.headers = headers or {}65 self.cookies = cookies or {}66 self.auth = auth67 self.timeout = timeout68 self.proxies = proxies or {}69 self.hooks = hooks or {}70 self.params = params or {}7172 # Set up a CookieJar to be used by default73 self.cookies = cookielib.FileCookieJar()74
61 unmodified lines