You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes introduced in 98c9e3b#diff-6607b435d6ee868f251dbdd1a6d0edecL357 are wrong and lead to crashes for io.BytesIO instances which do have a .fileno() method but raise another exception instead:
>>> import io
>>> io.BytesIO().fileno()
Traceback (most recent call last):
File "<ipython-input-3-7062c09d0c52>", line 1, in <module>
io.BytesIO().fileno()
UnsupportedOperation: fileno
This exception was already caught properly in the earlier code, a few lines below.