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:
008c77c
)
cleaner defaults
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 07:19:51 +0000
(
03:19
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 07:19:51 +0000
(
03:19
-0400)
requests/config.py
patch
|
blob
|
history
diff --git
a/requests/config.py
b/requests/config.py
index
ce46448
..
a42f15d
100644
(file)
--- a/
requests/config.py
+++ b/
requests/config.py
@@
-12,7
+12,7
@@
class Settings(object):
_singleton = {}
# attributes with defaults
- __attrs__ =
('timeout', 'verbose')
+ __attrs__ =
[]
def __init__(self, **kwargs):
super(Settings, self).__init__()
@@
-59,6
+59,8
@@
settings = Settings()
settings.base_headers = {'User-Agent': 'python-requests.org'}
settings.accept_gzip = True
settings.proxies = None
+settings.verbose = None
+settings.timeout = None
#: Use socket.setdefaulttimeout() as fallback?
settings.timeout_fallback = True