'Read the stderr file of the kernel.'

def _read_stderr(self):

    stderr_text = open(self.stderr_file, 'rb').read()
    encoding = get_coding(stderr_text)
    stderr = to_text_string(stderr_text, encoding)
    return stderr
