Comment 9 for bug 987514

Revision history for this message
Arfrever Frehtes Taifersar Arahesis (arfrever-fta) wrote :

Actually 'except IOError:' would suffice, since io.UnsupportedOperation is a subclass of IOError.

$ python3.1 -c 'import io; print(issubclass(io.UnsupportedOperation, IOError))'
True
$ python3.2 -c 'import io; print(issubclass(io.UnsupportedOperation, IOError))'
True