From: Victor Stinner <victor.stinner@gmail.com> Date: Wed, 29 Jan 2014 22:32:20 +0000 (-0800) Subject: asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor. X-Git-Tag: v3.4.0rc1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73f10fd2f1f7b74745e835eae4bd13b625598974;p=python asyncio: Fix _make_subprocess_transport(): pass extra value to the constructor. --- diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 05aa2721bd..ac764f8ad5 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 3c21e43bd6..d01de2f703 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