def remove_redundant_indentation(self, frame):
    if frame.multiline_frame:
        return
    index = frame.start_line_index
    splice_index = 0
    while (index < len(self.output_lines)):
        line = self.output_lines[index]
        index += 1
        if (len(line.text) == 0):
            continue
        if ((self.preindent_string != '') and (line.text[0] == self.preindent_string)):
            splice_index = 1
        else:
            splice_index = 0
        if (line.text[splice_index] == self.indent_string):
            del line.text[splice_index]
def remove_redundant_indentation(self, frame):
    if frame.multiline_frame:
        return
    index = frame.start_line_index
    splice_index = 0
    while (index < len(self.output_lines)):
        line = self.output_lines[index]
        index += 1
        if (len(line.text) == 0):
            continue
        if ((self.preindent_string != ) and (line.text[0] == self.preindent_string)):
            splice_index = 1
        else:
            splice_index = 0
        if (line.text[splice_index] == self.indent_string):
            del line.text[splice_index]