Skip to content
Myr

cleaner defaults

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 008c77c · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:requests/config.py+3 added-1 removed
10 unmodified lines
11class Settings(object):12 _singleton = {}1314 # attributes with defaults15 __attrs__ = ('timeout', 'verbose')15 __attrs__ = []1617 def __init__(self, **kwargs):18 super(Settings, self).__init__()19
38 unmodified lines
5859settings.base_headers = {'User-Agent': 'python-requests.org'}60settings.accept_gzip = True61settings.proxies = None62settings.verbose = None63settings.timeout = None6465#: Use socket.setdefaulttimeout() as fallback?66settings.timeout_fallback = True