def runTask(self, task, timeout=None):
        """Run a child task to completion.  Returns the result of
        the child task.
        """
        # Initialize the task.
        task.initialize(self)

        # Start the task.
        task.start()

        # Lets other threads run
        time.sleep(0)

        # Wait for it to finish.
        res = task.wait(timeout=timeout)

        # Now we're done
        return res
def runTask ( self , task , timeout = None ) : task . initialize ( self ) task . start ( ) time . sleep ( 0 ) res = task . wait ( timeout = timeout ) return res
Run a child task to completion.  Returns the result of
        the child task.