projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a91ac24
)
api cleanup
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 28 Dec 2011 07:42:57 +0000
(
02:42
-0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 28 Dec 2011 07:42:57 +0000
(
02:42
-0500)
requests/api.py
patch
|
blob
|
history
diff --git
a/requests/api.py
b/requests/api.py
index
aae4afc
..
7f2ed41
100644
(file)
--- a/
requests/api.py
+++ b/
requests/api.py
@@
-33,7
+33,7
@@
def request(method, url, **kwargs):
:param config: (optional) A configuration dictionary.
"""
- s =
session
or sessions.session()
+ s =
kwargs.get('session')
or sessions.session()
return s.request(method=method, url=url, **kwargs)