Conversation
| "protected_request": set(), | ||
| } | ||
|
|
||
| def auth(self, r): |
There was a problem hiding this comment.
Could the same have been done with the lambda function?
|
This PR makes me hesitate on a security library when the top of the documentation says pickling is not secure. |
The multiprocessing library (and consequently things such as concurrent.futures's ProcessPoolExecutor) requires that the objects be picklable. |
|
That said, the fix here is incomplete, at least with current versions of requests. The requests Session defines a specific list of attributes to save/restore, which doesn't include the OAuth2Session's For context, without the fix in the PR here, I see the following exception: |
No description provided.