mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
new config module
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ This module impliments the Requests API.
|
||||
"""
|
||||
|
||||
import requests
|
||||
import settings
|
||||
import config
|
||||
from .models import Request, Response, AuthManager, AuthObject, auth_manager
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ def request(method, url, **kwargs):
|
||||
cookiejar=kwargs.pop('cookies', None),
|
||||
files=kwargs.pop('files', None),
|
||||
auth=kwargs.pop('auth', auth_manager.get_auth(url)),
|
||||
timeout=kwargs.pop('timeout', settings.timeout),
|
||||
timeout=kwargs.pop('timeout', config.settings.timeout),
|
||||
allow_redirects=kwargs.pop('allow_redirects', None)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user