add 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session

This commit is contained in:
makto
2013-03-29 20:58:15 +08:00
parent ba25184ed5
commit 4ffae38627
+1 -1
View File
@@ -182,7 +182,7 @@ class Session(SessionRedirectMixin):
__attrs__ = [
'headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks',
'params', 'verify', 'cert', 'prefetch', 'adapters', 'stream',
'trust_env']
'trust_env', 'max_redirects']
def __init__(self):