Skip to content

Commit 941e4c0

Browse files
authored
Update popen_spawn_win32.py
1 parent 590f446 commit 941e4c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/multiprocessing/popen_spawn_win32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, process_obj):
8484
self._handle = hp
8585
self.sentinel = int(hp)
8686
self.finalizer = util.Finalize(self, _close_handles,
87-
(self.sentinel, int(rhandle)))
87+
(self.sentinel, int(rhandle)))._key
8888

8989
# send information to child
9090
set_spawning_popen(self)
@@ -128,4 +128,4 @@ def terminate(self):
128128
kill = terminate
129129

130130
def close(self):
131-
self.finalizer()
131+
util._finalizer_registry[self.finalizer()]()

0 commit comments

Comments
 (0)