(conn)
| 1217 | reduction.register(Connection, reduce_connection) |
| 1218 | |
| 1219 | def reduce_pipe_connection(conn): |
| 1220 | access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) | |
| 1221 | (_winapi.FILE_GENERIC_WRITE if conn.writable else 0)) |
| 1222 | dh = reduction.DupHandle(conn.fileno(), access) |
| 1223 | return rebuild_pipe_connection, (dh, conn.readable, conn.writable) |
| 1224 | def rebuild_pipe_connection(dh, readable, writable): |
| 1225 | handle = dh.detach() |
| 1226 | return PipeConnection(handle, readable, writable) |
nothing calls this directly
no test coverage detected
searching dependent graphs…