#24998: fix cut and paste error in subprocess example.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 114907f..01a791c 100644
--- 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: