def flush(self):
if self.closed:
- raise ValueError("flush of closed file")
+ raise ValueError("flush on closed file")
self.raw.flush()
def close(self):
def _flush_unlocked(self):
if self.closed:
- raise ValueError("flush of closed file")
+ raise ValueError("flush on closed file")
while self._write_buf:
try:
n = self.raw.write(self._write_buf)
def fileno(self):
if self._handle is None:
- raise ValueError("I/O operatioon on closed pipe")
+ raise ValueError("I/O operation on closed pipe")
return self._handle
def close(self, *, CloseHandle=_winapi.CloseHandle):