def safe_ord(c):
    """
    Returns an integer representing the Unicode code point of the character or int if int argument is passed

    :param c: character or integer
    :return: integer representing the Unicode code point of the character or int if int argument is passed
    """
    if isinstance(c, int):
        return c
    else:
        return ord(c)
