closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH-20403)

This commit is contained in:
sth 2020-05-26 06:08:40 +02:00 committed by GitHub
parent f7b1e46156
commit 4a0ac42c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,14 +95,14 @@ Creating Subprocesses
See the documentation of :meth:`loop.subprocess_shell` for other
parameters.
.. important::
.. important::
It is the application's responsibility to ensure that all whitespace and
special characters are quoted appropriately to avoid `shell injection
<https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_
vulnerabilities. The :func:`shlex.quote` function can be used to properly
escape whitespace and special shell characters in strings that are going
to be used to construct shell commands.
It is the application's responsibility to ensure that all whitespace and
special characters are quoted appropriately to avoid `shell injection
<https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_
vulnerabilities. The :func:`shlex.quote` function can be used to properly
escape whitespace and special shell characters in strings that are going
to be used to construct shell commands.
.. deprecated-removed:: 3.8 3.10