MCPcopy Index your code
hub / github.com/RustPython/RustPython / _restore_fds

Method _restore_fds

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

Source from the content-addressed store, hash-verified

2649 return fds
2650
2651 def _restore_fds(self, fds):
2652 for fd, saved, inheritable in fds:
2653 os.dup2(saved, fd, inheritable=inheritable)
2654 os.close(saved)
2655
2656 def check_close_std_fds(self, fds):
2657 # 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