Browse Source

asyncio: PipeHandle.fileno() now raises an exception if the pipe is closed

pull/224/head
Victor Stinner 12 years ago
parent
commit
2a3f38fd29
  1. 2
      Lib/asyncio/windows_utils.py

2
Lib/asyncio/windows_utils.py

@ -147,6 +147,8 @@ class PipeHandle:
return self._handle
def fileno(self):
if self._handle is None:
raise ValueError("I/O operatioon on closed pipe")
return self._handle
def close(self, *, CloseHandle=_winapi.CloseHandle):

Loading…
Cancel
Save