Skip to content

kwarg for session#14

Open
wcummings wants to merge 1 commit into
kadirpekel:masterfrom
wcummings:master
Open

kwarg for session#14
wcummings wants to merge 1 commit into
kadirpekel:masterfrom
wcummings:master

Conversation

@wcummings

Copy link
Copy Markdown

Lets you pass in clients setup with requests_oauthlib

Lets you pass in clients setup with requests_oauthlib
@rubik

rubik commented Sep 17, 2013

Copy link
Copy Markdown
Contributor

Very useful, IMHO.

Comment thread hammock.py
self._parent = parent
self._append_slash = append_slash
self._session = requests.session()
self._session = session if session is not None else requests.session()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be modified to

self._session = session or requests.Session()

E-G-C added a commit to E-G-C/hammock that referenced this pull request Nov 4, 2019
Added custom  sessions 
- see kadirpekel#14
- removing redundant slashes see kadirpekel#13
- better unicode as per https://github.com/bepress/hammock/blob/master/hammock.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants