From: Georg Brandl <georg@python.org>
Date: Sun, 22 Jun 2008 18:11:52 +0000 (+0000)
Subject: #3085: Fix syntax error.
X-Git-Tag: v2.6b2~192
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd05191faf6267080daf6646e79d288552cbb68;p=python

#3085: Fix syntax error.
---

diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 73a5cc551f..6fd1b980a0 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