예제 #1
0
 def __init__(self, command, key=None, handler=None,
              stderr=False, timeout=-1, autoclose=False):
     """Initialize Popen worker."""
     WorkerSimple.__init__(self, None, None, None, key, handler, stderr,
                           timeout, autoclose, client_class=PopenClient)
     self.command = command
     if not self.command:
         raise ValueError("missing command parameter in WorkerPopen "
                          "constructor")
예제 #2
0
 def __init__(self, command, key=None, handler=None,
              stderr=False, timeout=-1, autoclose=False):
     """Initialize Popen worker."""
     WorkerSimple.__init__(self, None, None, None, key, handler, stderr,
                           timeout, autoclose, client_class=PopenClient)
     self.command = command
     if not self.command:
         raise ValueError("missing command parameter in WorkerPopen "
                          "constructor")
     self.key = key