Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't overwrite methods of an external object #95

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

kbussell
Copy link
Contributor

Fixes #94

response.raw is an urllib3 Response object. response.close() is a method on a requests Response object. I'm not sure why this was added in the first place, but this should not work.

It's possible that older versions of Requests and urllib3 had a bug around this, but using 2.9.0 and up, this line doesn't do anything useful and could be harmful.

`response.raw` is an urllib3 Response object. `response.close()` is a method on a requests Response object. I'm not sure why this was added in the first place, but this should not work.

It's possible that older versions of Requests and urllib3 had a bug around this, but using 2.9.0 and up, this line doesn't do anything useful and could be harmful.
@zebuline zebuline mentioned this pull request Aug 31, 2016
3 tasks
@zebuline
Copy link
Contributor

@kbussell seems legit. We had some bugs too when Requests was updated on our project, with document.close() calls, where document is the result of the get_envelope_document method.

@zebuline zebuline merged commit b50873b into peopledoc:master Aug 31, 2016
@zebuline
Copy link
Contributor

And thanks for the PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pydocusign overwriting an urllib3 Response method with a Requests Response method
2 participants