Skip to content
Myr

Merge pull request #603 from benmao/develop

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

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 3d2d072, 44663b5 · 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
135 unmodified lines
136137 Unlike a regular CookieJar, this class is pickleable.138 """139140 def get(self, name, domain=None, path=None, default=None):140 def get(self, name, default=None, domain=None, path=None):141 try:142 return self._find(name, domain, path)143 except KeyError:144 return default
117 unmodified lines