Skip to content

Commit

Permalink
Remove an obsolete attribute from __attrs__
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nedbat authored and nateprewitt committed Feb 18, 2020
1 parent c46f55b commit 80011a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]

Expand Down

0 comments on commit 80011a7

Please sign in to comment.