Example #1
0
 def __init__(self, *, command: str,
              call_error: CalledProcessError) -> None:
     super().__init__(command=command, exit_code=call_error.returncode)
     CalledProcessError.__init__(self,
                                 returncode=call_error.returncode,
                                 cmd=call_error.cmd,
                                 output=call_error.output,
                                 stderr=call_error.stderr)
Example #2
0
 def __init__(self, *, command: str, call_error: CalledProcessError) -> None:
     super().__init__(command=command, exit_code=call_error.returncode)
     CalledProcessError.__init__(
         self,
         returncode=call_error.returncode,
         cmd=call_error.cmd,
         output=call_error.output,
         stderr=call_error.stderr,
     )
 def __init__(self, returncode, cmd, stderr, stdout):
     CalledProcessError.__init__(self, returncode, cmd)
     self.stderr = stderr
     self.stdout = stdout
Example #4
0
 def __init__(self, returncode, cmd, out):
     CalledProcessError.__init__(self, returncode, cmd)
     self.out = out.lstrip()
Example #5
0
File: exc.py Project: jcfr/libvcs
 def __init__(self, returncode, cmd, output):
     CalledProcessError.__init__(self,
                                 returncode=returncode,
                                 cmd=cmd,
                                 output=output)