mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Merge: #24998: fix cut and paste error in subprocess example.
This commit is contained in:
commit
d3639dc21a
1 changed files with 1 additions and 1 deletions
|
@ -1068,7 +1068,7 @@ Return code handling translates as follows::
|
||||||
if rc is not None and rc >> 8:
|
if rc is not None and rc >> 8:
|
||||||
print("There were some errors")
|
print("There were some errors")
|
||||||
==>
|
==>
|
||||||
process = Popen(cmd, 'w', stdin=PIPE)
|
process = Popen(cmd, stdin=PIPE)
|
||||||
...
|
...
|
||||||
process.stdin.close()
|
process.stdin.close()
|
||||||
if process.wait() != 0:
|
if process.wait() != 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue