mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
asyncio: pep8-ify the code.
This commit is contained in:
parent
b0b0e628ee
commit
b41a42e316
5 changed files with 26 additions and 12 deletions
|
@ -180,8 +180,9 @@ def create_subprocess_shell(cmd, stdin=None, stdout=None, stderr=None,
|
|||
return Process(transport, protocol, loop)
|
||||
|
||||
@tasks.coroutine
|
||||
def create_subprocess_exec(program, *args, stdin=None, stdout=None, stderr=None,
|
||||
loop=None, limit=streams._DEFAULT_LIMIT, **kwds):
|
||||
def create_subprocess_exec(program, *args, stdin=None, stdout=None,
|
||||
stderr=None, loop=None,
|
||||
limit=streams._DEFAULT_LIMIT, **kwds):
|
||||
if loop is None:
|
||||
loop = events.get_event_loop()
|
||||
protocol_factory = lambda: SubprocessStreamProtocol(limit=limit,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue