[Python-checkins] r65476 - python/trunk/Doc/library/subprocess.rst

georg.brandl python-checkins at python.org
Mon Aug 4 08:29:36 CEST 2008


Author: georg.brandl
Date: Mon Aug  4 08:29:36 2008
New Revision: 65476

Log:
Fix markup.


Modified:
   python/trunk/Doc/library/subprocess.rst

Modified: python/trunk/Doc/library/subprocess.rst
==============================================================================
--- python/trunk/Doc/library/subprocess.rst	(original)
+++ python/trunk/Doc/library/subprocess.rst	Mon Aug  4 08:29:36 2008
@@ -193,9 +193,11 @@
    Wait for child process to terminate.  Set and return :attr:`returncode`
    attribute.
 
-   warning:: This will deadlock if the child process generates enough output
-   to a stdout or stderr pipe causing it to block waiting for the OS's pipe
-   buffer to accept more data.
+   .. warning::
+
+      This will deadlock if the child process generates enough output to a
+      stdout or stderr pipe causing it to block waiting for the OS's pipe buffer
+      to accept more data.
 
 
 .. method:: Popen.communicate(input=None)
@@ -249,35 +251,30 @@
 
 The following attributes are also available:
 
+.. warning::
+
+   Use :meth:`communicate` rather than ``.stdin.write()``, ``.stdout.read()`` or
+   ``.stderr.read`` to avoid deadlocks due to any of the other pipe buffers
+   filling up and blocking the child process.
+
+
 .. attribute:: Popen.stdin
 
    If the *stdin* argument is ``PIPE``, this attribute is a file object that
    provides input to the child process.  Otherwise, it is ``None``.
 
-   warning:: Use :meth:`communicate` rather than .stdin.write() to avoid
-   deadlocks due to any of the other pipe buffers filling up and blocking the
-   child process.
-
 
 .. attribute:: Popen.stdout
 
    If the *stdout* argument is ``PIPE``, this attribute is a file object that
    provides output from the child process.  Otherwise, it is ``None``.
 
-   warning:: Use :meth:`communicate` rather than .stdout.read() to avoid
-   deadlocks due to any of the other pipe buffers filling up and blocking the
-   child process.
-
 
 .. attribute:: Popen.stderr
 
    If the *stderr* argument is ``PIPE``, this attribute is file object that
    provides error output from the child process.  Otherwise, it is ``None``.
 
-   warning:: Use :meth:`communicate` rather than .stderr.read() to avoid
-   deadlocks due to any of the other pipe buffers filling up and blocking the
-   child process.
-
 
 .. attribute:: Popen.pid
 


More information about the Python-checkins mailing list