From: Georg Brandl Date: Sun, 22 Jun 2008 18:11:52 +0000 (+0000) Subject: #3085: Fix syntax error. X-Git-Tag: v2.6b2~192 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bd05191faf6267080daf6646e79d288552cbb68;p=thirdparty%2FPython%2Fcpython.git #3085: Fix syntax error. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 73a5cc551fd5..6fd1b980a087 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -372,13 +372,13 @@ Replacing os.popen\* :: - pipe = os.popen(cmd, mode='r', bufsize) + pipe = os.popen(cmd, 'r', bufsize) ==> pipe = Popen(cmd, shell=True, bufsize=bufsize, stdout=PIPE).stdout :: - pipe = os.popen(cmd, mode='w', bufsize) + pipe = os.popen(cmd, 'w', bufsize) ==> pipe = Popen(cmd, shell=True, bufsize=bufsize, stdin=PIPE).stdin