Skip to content
Myr

get cookie like dict, such as self.cookies.get('test', 'no cookie')

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

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/cookies.py+1 added-1 removed
138 unmodified lines
139140 Unlike a regular CookieJar, this class is pickleable.141 """142143 def get(self, name, domain=None, path=None, default=None):143 def get(self, name, default=None, domain=None, path=None):144 try:145 return self._find(name, domain, path)146 except KeyError:147 return default
117 unmodified lines