mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +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
|
|
@ -605,10 +605,10 @@ def subprocess_shell(self, protocol_factory, cmd, *, stdin=subprocess.PIPE,
|
|||
return transport, protocol
|
||||
|
||||
@tasks.coroutine
|
||||
def subprocess_exec(self, protocol_factory, program, *args, stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
universal_newlines=False, shell=False, bufsize=0,
|
||||
**kwargs):
|
||||
def subprocess_exec(self, protocol_factory, program, *args,
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE, universal_newlines=False,
|
||||
shell=False, bufsize=0, **kwargs):
|
||||
if universal_newlines:
|
||||
raise ValueError("universal_newlines must be False")
|
||||
if shell:
|
||||
|
|
@ -623,7 +623,8 @@ def subprocess_exec(self, protocol_factory, program, *args, stdin=subprocess.PIP
|
|||
% type(arg).__name__)
|
||||
protocol = protocol_factory()
|
||||
transport = yield from self._make_subprocess_transport(
|
||||
protocol, popen_args, False, stdin, stdout, stderr, bufsize, **kwargs)
|
||||
protocol, popen_args, False, stdin, stdout, stderr,
|
||||
bufsize, **kwargs)
|
||||
return transport, protocol
|
||||
|
||||
def set_exception_handler(self, handler):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue