Comment 9 for bug 987514

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