[Python-checkins] cpython (2.7): #24998: fix cut and paste error in subprocess example.

r.david.murray python-checkins at python.org
Fri Sep 4 16:03:44 CEST 2015


https://hg.python.org/cpython/rev/0ff7aa9a438f
changeset:   97667:0ff7aa9a438f
branch:      2.7
parent:      97663:34a8078f6249
user:        R David Murray <rdmurray at bitdance.com>
date:        Fri Sep 04 10:00:22 2015 -0400
summary:
  #24998: fix cut and paste error in subprocess example.

files:
  Doc/library/subprocess.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -852,7 +852,7 @@
    if rc is not None and rc >> 8:
        print "There were some errors"
    ==>
-   process = Popen("cmd", 'w', shell=True, stdin=PIPE)
+   process = Popen("cmd", shell=True, stdin=PIPE)
    ...
    process.stdin.close()
    if process.wait() != 0:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list