Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17227a7

Browse files
committed
#24998: fix cut and paste error in subprocess example.
1 parent 4fda56f commit 17227a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/subprocess.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Return code handling translates as follows::
10001000
if rc is not None and rc >> 8:
10011001
print("There were some errors")
10021002
==>
1003-
process = Popen(cmd, 'w', stdin=PIPE)
1003+
process = Popen(cmd, stdin=PIPE)
10041004
...
10051005
process.stdin.close()
10061006
if process.wait() != 0:

0 commit comments

Comments
 (0)