io.BufferedIOBase.readable

BufferedIOBase.readable()

Return whether object was opened for reading.

If False, read() will raise IOError.