Skip to content
Myr

The `request` method of `Session` class does not take a `session` argument. But `api.request` does. So, it has to be popped before you can send the whole `kwargs` dict to `Session.request` method.

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

authored by Shrikant Sharat Kandula · committed by Shrikant Sharat Kandula · parent 89c90ad · 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/api.py+1 added-1 removed
32 unmodified lines
33 :param config: (optional) A configuration dictionary.34 :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.35 """3637 s = kwargs.get('session') or sessions.session()37 s = kwargs.pop('session') if 'session' in kwargs else sessions.session()38 return s.request(method=method, url=url, **kwargs)394041
74 unmodified lines