]> granicus.if.org Git - python/commitdiff
#3085: Fix syntax error.
authorGeorg Brandl <georg@python.org>
Sun, 22 Jun 2008 18:11:52 +0000 (18:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 22 Jun 2008 18:11:52 +0000 (18:11 +0000)
Doc/library/subprocess.rst

index 73a5cc551fd57e1162506c8c642df449749e2645..6fd1b980a0878833bacfa3748c4a13581d91deb8 100644 (file)
@@ -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