[Python-checkins] python/dist/src/Lib popen2.py,1.26,1.27

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
2003年7月07日 14:36:21 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv11307
Modified Files:
	popen2.py 
Log Message:
Use Boolean values for the capturestderr flag.
Index: popen2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/popen2.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** popen2.py	2 Jun 2003 19:12:01 -0000	1.26
--- popen2.py	7 Jul 2003 21:36:19 -0000	1.27
***************
*** 26,30 ****
 sts = -1 # Child not completed yet
 
! def __init__(self, cmd, capturestderr=0, bufsize=-1):
 """The parameter 'cmd' is the shell command to execute in a
 sub-process. The 'capturestderr' flag, if true, specifies that
--- 26,30 ----
 sts = -1 # Child not completed yet
 
! def __init__(self, cmd, capturestderr=False, bufsize=-1):
 """The parameter 'cmd' is the shell command to execute in a
 sub-process. The 'capturestderr' flag, if true, specifies that
***************
*** 142,146 ****
 specified, it sets the buffer size for the I/O pipes. The file objects
 (child_stdout, child_stdin) are returned."""
! inst = Popen3(cmd, 0, bufsize)
 return inst.fromchild, inst.tochild
 
--- 142,146 ----
 specified, it sets the buffer size for the I/O pipes. The file objects
 (child_stdout, child_stdin) are returned."""
! inst = Popen3(cmd, False, bufsize)
 return inst.fromchild, inst.tochild
 
***************
*** 149,153 ****
 specified, it sets the buffer size for the I/O pipes. The file objects
 (child_stdout, child_stdin, child_stderr) are returned."""
! inst = Popen3(cmd, 1, bufsize)
 return inst.fromchild, inst.tochild, inst.childerr
 
--- 149,153 ----
 specified, it sets the buffer size for the I/O pipes. The file objects
 (child_stdout, child_stdin, child_stderr) are returned."""
! inst = Popen3(cmd, True, bufsize)
 return inst.fromchild, inst.tochild, inst.childerr
 

AltStyle によって変換されたページ (->オリジナル) /