[Python-checkins] cpython (merge 3.4 -> 3.5): Merge: #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/fa53edb32962
changeset:   97669:fa53edb32962
branch:      3.5
parent:      97665:c4fb0ac2fabc
parent:      97668:47e711a7416b
user:        R David Murray <rdmurray at bitdance.com>
date:        Fri Sep 04 10:02:27 2015 -0400
summary:
  Merge: #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
@@ -1068,7 +1068,7 @@
    if rc is not None and rc >> 8:
        print("There were some errors")
    ==>
-   process = Popen(cmd, 'w', stdin=PIPE)
+   process = Popen(cmd, stdin=PIPE)
    ...
    process.stdin.close()
    if process.wait() != 0:

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


More information about the Python-checkins mailing list