Commits

bitdancer  committed 217006c Merge

Merge: #21347: use string not list in shell=True example.

  • Participants
  • Parent commits c546426, 3b27f3a

Comments (0)

Files changed (1)

File Doc/library/subprocess.rst

 
    (child_stdout, child_stdin) = popen2.popen2("somestring", bufsize, mode)
    ==>
-   p = Popen(["somestring"], shell=True, bufsize=bufsize,
+   p = Popen("somestring", shell=True, bufsize=bufsize,
              stdin=PIPE, stdout=PIPE, close_fds=True)
    (child_stdout, child_stdin) = (p.stdout, p.stdin)