bpo-30256: pass all BaseProxy arguments through AutoProxy

This commit is contained in:
Jordan Speicher 2017-12-12 12:03:34 -06:00 committed by Jordan Speicher
parent bfd0c963d8
commit 2cc589434d
2 changed files with 3 additions and 2 deletions

View File

@ -958,7 +958,7 @@ def MakeProxyType(name, exposed, _cache={}):
def AutoProxy(token, serializer, manager=None, authkey=None,
exposed=None, incref=True):
exposed=None, incref=True, manager_owned=False):
'''
Return an auto-proxy for `token`
'''
@ -978,7 +978,7 @@ def AutoProxy(token, serializer, manager=None, authkey=None,
ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed)
proxy = ProxyType(token, serializer, manager=manager, authkey=authkey,
incref=incref)
incref=incref, manager_owned=manager_owned)
proxy._isauto = True
return proxy

View File

@ -0,0 +1 @@
Pass multiprocessing BaseProxy argument `manager_owned` through AutoProxy