

def closed(self):
    if (self._exitCode or self._signal):
        reason = failure.Failure(ProcessTerminated(self._exitCode, processProtocol._signal, self.status))
    else:
        reason = failure.Failure(ProcessDone(status=self.status))
    processProtocol = self.processProtocol
    del self.processProtocol
    processProtocol.processEnded(reason)

dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/process.py SSHProcess.closed/VarMisuse@35/44 `self`->`processProtocol`