def trim_output_line(self, line):
    while (len(line.text) and ((line.text[(- 1)] == ' ') or (line.text[(- 1)] == self.indent_string) or (line.text[(- 1)] == self.preindent_string))):
        line.text.pop()
def trim_output_line(self, line):
    while (len(line.text) and ((line.text[(- 1)] == ' ') or (line.text[(- 1)] == self.indent_string) or (line.text[(- 1)] == self.preindent_string))):
        line.text.pop()