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

reuse util.is_fileobject #1175

Merged
merged 2 commits into from Jan 2, 2016
Merged

reuse util.is_fileobject #1175

merged 2 commits into from Jan 2, 2016

Conversation

benoitc
Copy link
Owner

@benoitc benoitc commented Dec 31, 2015

util.is_fileobject usage was removed due to the use of the tell method check.
This change remove this check wich allows us to completely test if
fileno() is usable. Also it handle most of the exceptions around created by
breaking changes across Python versions. Hopefully we are good now.

fix #1174

is_fileobject usgae was removed due to the use of the `tell` method check.
This change remove this check wich allows us to completely test if
fileno() is usable. Also it handle most of the exceptions around created by
breaking changes across Python versions. Hopefully we are good now.

fix #1174
@wbolster
Copy link

for the record, #1176 is an alternative fix

benoitc added a commit that referenced this pull request Jan 2, 2016
@benoitc benoitc merged commit 305f373 into master Jan 2, 2016
@berkerpeksag berkerpeksag deleted the fix/1174 branch January 6, 2016 16:21
mjjbell pushed a commit to mjjbell/gunicorn that referenced this pull request Mar 16, 2018
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.

Correctly handle unavailable .fileno() support for io.BytesIO instances
2 participants