MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / close_pipe

Function close_pipe

src/commoncode/command.py:191–197  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

189 return
190
191 def close_pipe(p):
192 if not p:
193 return
194 try:
195 p.close()
196 except IOError:
197 pass
198
199 close_pipe(getattr(proc, "stdin", None))
200 close_pipe(getattr(proc, "stdout", None))

Callers 1

closeFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected