diff options
author | finefoot <33361833+finefoot@users.noreply.github.com> | 2021-07-02 03:45:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 03:45:02 (GMT) |
commit | 85b920498b42c69185540ecc2f5c4907fd38d877 (patch) | |
tree | 64df6208092a4f89da21c6083580b9e81d5c979e /Lib/multiprocessing/managers.py | |
parent | a7e251b07aa5f1a858a3e791a30dea78e93ab728 (diff) | |
download | cpython-85b920498b42c69185540ecc2f5c4907fd38d877.zip cpython-85b920498b42c69185540ecc2f5c4907fd38d877.tar.gz cpython-85b920498b42c69185540ecc2f5c4907fd38d877.tar.bz2 |
bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341)
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r-- | Lib/multiprocessing/managers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 6ee9521..b981b0e 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -967,7 +967,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` ''' @@ -987,7 +987,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 |