[Python-checkins] python/dist/src/Lib subprocess.py,1.10,1.11

astrand at users.sourceforge.net astrand at users.sourceforge.net
Sun Dec 5 21:15:39 CET 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29723/Lib
Modified Files:
	subprocess.py 
Log Message:
Changed signature of call function to avoid confusion: this 'args' is not the same as the one to the Popen constructor
Index: subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/subprocess.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- subprocess.py	30 Nov 2004 21:04:44 -0000	1.10
+++ subprocess.py	5 Dec 2004 20:15:36 -0000	1.11
@@ -125,7 +125,7 @@
 
 This module also defines two shortcut functions:
 
-call(*args, **kwargs):
+call(*popenargs, **kwargs):
 Run command with arguments. Wait for command to complete, then
 return the returncode attribute.
 
@@ -417,7 +417,7 @@
 STDOUT = -2
 
 
-def call(*args, **kwargs):
+def call(*popenargs, **kwargs):
 """Run command with arguments. Wait for command to complete, then
 return the returncode attribute.
 
@@ -425,7 +425,7 @@
 
 retcode = call(["ls", "-l"])
 """
- return Popen(*args, **kwargs).wait()
+ return Popen(*popenargs, **kwargs).wait()
 
 
 def list2cmdline(seq):


More information about the Python-checkins mailing list

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