Lines Matching defs:UnsupportedOperation
322 # In normal operation, both `UnsupportedOperation`s should be bound to the
325 UnsupportedOperation = io.UnsupportedOperation
327 class UnsupportedOperation(OSError, ValueError):
342 may raise UnsupportedOperation when operations they do not support are
367 raise UnsupportedOperation("%s.%s() not supported" %
459 """Internal: raise UnsupportedOperation if file is not seekable
462 raise UnsupportedOperation("File or stream is not seekable."
473 """Internal: raise UnsupportedOperation if file is not readable
476 raise UnsupportedOperation("File or stream is not readable."
487 """Internal: raise UnsupportedOperation if file is not writable
490 raise UnsupportedOperation("File or stream is not writable."
1647 raise UnsupportedOperation('File not open for reading')
1651 raise UnsupportedOperation('File not open for writing')
2141 raise UnsupportedOperation(
2340 raise UnsupportedOperation("underlying stream is not seekable")
2468 raise UnsupportedOperation("underlying stream is not seekable")
2471 raise UnsupportedOperation("can't do nonzero cur-relative seeks")
2478 raise UnsupportedOperation("can't do nonzero end-relative seeks")