Changed signature of call function to avoid confusion: this 'args' is not the same as the one to the Popen constructor
This commit is contained in:
parent
c7979f16ec
commit
5f5e141589
|
@ -122,7 +122,7 @@ process. (Windows only)
|
|||
|
||||
This module also defines one shortcut function:
|
||||
|
||||
\begin{funcdesc}{call}{*args, **kwargs}
|
||||
\begin{funcdesc}{call}{*popenargs, **kwargs}
|
||||
Run command with arguments. Wait for command to complete, then
|
||||
return the \member{returncode} attribute.
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ appearance of the main window and priority for the new process.
|
|||
|
||||
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 @@ PIPE = -1
|
|||
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 @@ def call(*args, **kwargs):
|
|||
|
||||
retcode = call(["ls", "-l"])
|
||||
"""
|
||||
return Popen(*args, **kwargs).wait()
|
||||
return Popen(*popenargs, **kwargs).wait()
|
||||
|
||||
|
||||
def list2cmdline(seq):
|
||||
|
|
Loading…
Reference in New Issue