Skip to content
Myr

new config module

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent d64bf50 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/api.py+2 added-2 removed
10 unmodified lines
1112"""1314import requests15import settings15import config16from .models import Request, Response, AuthManager, AuthObject, auth_manager171819__all__ = ('request', 'get', 'head', 'post', 'put', 'delete')
19 unmodified lines
39 r = Request(method=method, url=url, data=data, headers=kwargs.pop('headers', {}),40 cookiejar=kwargs.pop('cookies', None),41 files=kwargs.pop('files', None),42 auth=kwargs.pop('auth', auth_manager.get_auth(url)),43 timeout=kwargs.pop('timeout', settings.timeout),43 timeout=kwargs.pop('timeout', config.settings.timeout),44 allow_redirects=kwargs.pop('allow_redirects', None)45 )4647 r.send()
74 unmodified lines