From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 2 May 2022 15:20:25 +0000 (-0700) Subject: asyncio.subprocess: Fix a typo in doc (GH-92030) X-Git-Tag: v3.9.13~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c011cc6c2a7629b8120ec26d7776713c096e69c;p=thirdparty%2FPython%2Fcpython.git asyncio.subprocess: Fix a typo in doc (GH-92030) Remove a confusion for read method in asyncio-subprocess doc for stderr StreamReader instance (cherry picked from commit bb857a96ef368ba9de1da2db12b1a1f1870606ac) Co-authored-by: Harsh <65716674+Harsh-br0@users.noreply.github.com> --- diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index 6ba24249f28d..fbe68f78a2f9 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -278,7 +278,7 @@ their completion. Use the :meth:`communicate` method rather than :attr:`process.stdin.write() `, :attr:`await process.stdout.read() ` or - :attr:`await process.stderr.read `. + :attr:`await process.stderr.read() `. This avoids deadlocks due to streams pausing reading or writing and blocking the child process.