]> granicus.if.org Git - python/commitdiff
#24998: fix cut and paste error in subprocess example.
authorR David Murray <rdmurray@bitdance.com>
Fri, 4 Sep 2015 14:01:19 +0000 (10:01 -0400)
committerR David Murray <rdmurray@bitdance.com>
Fri, 4 Sep 2015 14:01:19 +0000 (10:01 -0400)
Doc/library/subprocess.rst

index 36cbf3c5f364a42d6a3c8979d57e67203f0a7364..9ac8882d32af6b8902437731e4862466aa161f3a 100644 (file)
@@ -1000,7 +1000,7 @@ Return code handling translates as follows::
    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: