Bug 7040: 4.0.2 svn 23029M fails to start catastrophically

svn: r23030
This commit is contained in:
John Ralls 2013-09-04 14:04:48 +00:00
parent d911ce7760
commit 4cf8c95170

View File

@ -376,7 +376,7 @@ def display_error_dialog (index, errorstrings):
ErrorDialog(_("Error from external program"), error) ErrorDialog(_("Error from external program"), error)
def poll_external ((proc, errorstrings)): def poll_external (args):
""" """
Check the for completion of a task launched with Check the for completion of a task launched with
subprocess.Popen(). This function is intended to be passed to subprocess.Popen(). This function is intended to be passed to
@ -387,7 +387,8 @@ def poll_external ((proc, errorstrings)):
@errorstrings a dict of possible response values and the corresponding messages to display. @errorstrings a dict of possible response values and the corresponding messages to display.
@returns bool returned to timeout_add_seconds: should this function be called again? @returns bool returned to timeout_add_seconds: should this function be called again?
""" """
resp = proc.poll() (proc, errorstrings) = args
resp = proc.poll()
if resp is None: if resp is None:
return True return True