mirror of
https://github.com/python/cpython.git
synced 2024-12-18 22:34:08 +08:00
asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor.
This commit is contained in:
parent
48c66c3dd8
commit
73f10fd2f1
@ -159,7 +159,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
|
||||
with events.get_child_watcher() as watcher:
|
||||
transp = _UnixSubprocessTransport(self, protocol, args, shell,
|
||||
stdin, stdout, stderr, bufsize,
|
||||
extra=None, **kwargs)
|
||||
extra=extra, **kwargs)
|
||||
yield from transp._post_init()
|
||||
watcher.add_child_handler(transp.get_pid(),
|
||||
self._child_watcher_callback, transp)
|
||||
|
@ -174,7 +174,7 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
|
||||
extra=None, **kwargs):
|
||||
transp = _WindowsSubprocessTransport(self, protocol, args, shell,
|
||||
stdin, stdout, stderr, bufsize,
|
||||
extra=None, **kwargs)
|
||||
extra=extra, **kwargs)
|
||||
yield from transp._post_init()
|
||||
return transp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user