Skip to content

Commit ad07b10

Browse files
committed
bpo-19764: Convert subprocess.Handle to int in handle_list
1 parent 7e68016 commit ad07b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
992992
handle_list = attribute_list.setdefault("handle_list", [])
993993

994994
if use_std_handles:
995-
handle_list += [p2cread, c2pwrite, errwrite]
995+
handle_list += [int(p2cread), int(c2pwrite), int(errwrite)]
996996

997997
handle_list[:] = self._filter_handle_list(handle_list)
998998

0 commit comments

Comments
 (0)