Commit 2a3f38fd authored by Victor Stinner's avatar Victor Stinner

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

parent a19b7b3f
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment