def _strip_exc(exc):
 return re.sub('^Command [\\\'"].+[\\\'"] failed: ', '', exc.strerror)

def _strip_exc ( exc ) : return re . sub ( '^Command [\\\'"].+[\\\'"] failed: ' , '' , exc . strerror )
strip the actual command that was run from exc .