Increasing super_len compatibilty to include BytesIO and cStringIO objects.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Added a check for 'getvalue' attr, calling it to retrieve the length if we can. We also try/except the fileno() call, which can throw io.UnsupportedOperation for BytesIO because, well, they're not files.
authored by Matt Spitz · committed by Matt Spitz · parent 025543b · Browse files · 2 files+33 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+33 added−1 removed
- other:+33 added−1 removed