diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 05aa2721bde..ac764f8ad56 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -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) diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 3c21e43bd69..d01de2f703d 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -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