Beispiel #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)
Beispiel #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
Beispiel #4
0
 def __init__(self, returncode, cmd, out):
     CalledProcessError.__init__(self, returncode, cmd)
     self.out = out.lstrip()
Beispiel #5
0
 def __init__(self, returncode, cmd, output):
     CalledProcessError.__init__(self,
                                 returncode=returncode,
                                 cmd=cmd,
                                 output=output)