Skip to content

Commit 2cc5894

Browse files
uSpikeJordan Speicher
authored and
Jordan Speicher
committed
bpo-30256: pass all BaseProxy arguments through AutoProxy
1 parent bfd0c96 commit 2cc5894

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/multiprocessing/managers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def MakeProxyType(name, exposed, _cache={}):
958958

959959

960960
def AutoProxy(token, serializer, manager=None, authkey=None,
961-
exposed=None, incref=True):
961+
exposed=None, incref=True, manager_owned=False):
962962
'''
963963
Return an auto-proxy for `token`
964964
'''
@@ -978,7 +978,7 @@ def AutoProxy(token, serializer, manager=None, authkey=None,
978978

979979
ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed)
980980
proxy = ProxyType(token, serializer, manager=manager, authkey=authkey,
981-
incref=incref)
981+
incref=incref, manager_owned=manager_owned)
982982
proxy._isauto = True
983983
return proxy
984984

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pass multiprocessing BaseProxy argument `manager_owned` through AutoProxy

0 commit comments

Comments
 (0)