Skip to content

Commit 2513628

Browse files
authored
Update popen_spawn_win32.py
1 parent e2a93dc commit 2513628

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
@@ -83,7 +83,7 @@ def __init__(self, process_obj):
8383
self.returncode = None
8484
self._handle = hp
8585
self.sentinel = int(hp)
86-
self.finalizer = util.Finalize(self, _close_handles,
86+
self._finalizer = util.Finalize(self, _close_handles,
8787
(self.sentinel, int(rhandle)))._key
8888

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

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

0 commit comments

Comments
 (0)