Kaydet (Commit) 5f5e1415 authored tarafından Peter Astrand's avatar Peter Astrand

Changed signature of call function to avoid confusion: this 'args' is not the…

Changed signature of call function to avoid confusion: this 'args' is not the same as the one to the Popen constructor
üst c7979f16
...@@ -122,7 +122,7 @@ process. (Windows only) ...@@ -122,7 +122,7 @@ process. (Windows only)
This module also defines one shortcut function: 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 Run command with arguments. Wait for command to complete, then
return the \member{returncode} attribute. return the \member{returncode} attribute.
......
...@@ -125,7 +125,7 @@ appearance of the main window and priority for the new process. ...@@ -125,7 +125,7 @@ appearance of the main window and priority for the new process.
This module also defines two shortcut functions: This module also defines two shortcut functions:
call(*args, **kwargs): call(*popenargs, **kwargs):
Run command with arguments. Wait for command to complete, then Run command with arguments. Wait for command to complete, then
return the returncode attribute. return the returncode attribute.
...@@ -417,7 +417,7 @@ PIPE = -1 ...@@ -417,7 +417,7 @@ PIPE = -1
STDOUT = -2 STDOUT = -2
def call(*args, **kwargs): def call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete, then """Run command with arguments. Wait for command to complete, then
return the returncode attribute. return the returncode attribute.
...@@ -425,7 +425,7 @@ def call(*args, **kwargs): ...@@ -425,7 +425,7 @@ def call(*args, **kwargs):
retcode = call(["ls", "-l"]) retcode = call(["ls", "-l"])
""" """
return Popen(*args, **kwargs).wait() return Popen(*popenargs, **kwargs).wait()
def list2cmdline(seq): def list2cmdline(seq):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment