def remove_last_newline_char(_line):
    """
        remove_last_newline_char()
        ________________________________________________________________________

        Remove the last 'newline' character in <_line>.
        ________________________________________________________________________

        PARAMETER : the <_line> to be modified

        RETURNED VALUE : <_line> without its last 'newline' character.
    """
    if _line.endswith('\n'):
        line = _line[:-1]
    elif _line.endswith('\r\n'):
        line = _line[:-2]
    elif _line.endswith('\r'):
        line = _line[:-1]
    else:
        line = _line
    return line
