]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#24998: fix cut and paste error in subprocess example.
authorR David Murray <rdmurray@bitdance.com>
Fri, 4 Sep 2015 14:00:22 +0000 (10:00 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 4 Sep 2015 14:00:22 +0000 (10:00 -0400)
Doc/library/subprocess.rst

index 114907f583689afe0466d83e9f3042b087012c52..01a791c76cc2abdc9c09c3146868a7c7bb8d142a 100644 (file)
@@ -852,7 +852,7 @@ Return code handling translates as follows::
    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: