MCPcopy Index your code
hub / github.com/python/cpython / _restore_fds

Method _restore_fds

Lib/test/test_subprocess.py:2652–2655  ·  view source on GitHub ↗
(self, fds)

Source from the content-addressed store, hash-verified

2650 return fds
2651
2652 def _restore_fds(self, fds):
2653 for fd, saved, inheritable in fds:
2654 os.dup2(saved, fd, inheritable=inheritable)
2655 os.close(saved)
2656
2657 def check_close_std_fds(self, fds):
2658 # Issue #9905: test that subprocess pipes still work properly with

Callers 4

check_close_std_fdsMethod · 0.95
check_swap_fdsMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected