From 80011a7917afe2cd6a5fa8359e7ea90203880b3c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 4 Jun 2019 16:05:28 -0400 Subject: [PATCH] Remove an obsolete attribute from __attrs__ The extra attribute in __attrs__ makes an unpickled session have one more attribute than the original. Removing it makes the original and the unpickled be identical. --- requests/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/sessions.py b/requests/sessions.py index cd8a8ae6b6..2845880bf4 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -355,7 +355,7 @@ class Session(SessionRedirectMixin): __attrs__ = [ 'headers', 'cookies', 'auth', 'proxies', 'hooks', 'params', 'verify', - 'cert', 'prefetch', 'adapters', 'stream', 'trust_env', + 'cert', 'adapters', 'stream', 'trust_env', 'max_redirects', ]