'Gets the previous line text (relative to the current cursor pos).
:return: previous line text (str)'

def previous_line_text(self):

    if self.current_line_nbr():
        return self.line_text((self.current_line_nbr() - 1))
    return ''
