Skip to content

Commit aac6d94

Browse files
committed
fix gh-139801, make able to pickle BaseProxy
1 parent 3e9a5b0 commit aac6d94

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/multiprocessing/managers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,7 @@ def _after_fork(self):
909909
util.info('incref failed: %s' % e)
910910

911911
def __reduce__(self):
912-
kwds = {}
913-
if get_spawning_popen() is not None:
914-
kwds['authkey'] = self._authkey
912+
kwds = {"authkey": self._authkey}
915913

916914
if getattr(self, '_isauto', False):
917915
kwds['exposed'] = self._exposed_

0 commit comments

Comments
 (0)