def _get_binop_operator(cursor):
    """
    Returns the operator token of a binary operator cursor.

    :param cursor: A cursor of kind BINARY_OPERATOR.
    :return:       The token object containing the actual operator or None.
    """
    children = list(cursor.get_children())
    operator_min_begin = children[0].location.line, children[0].location.column
    operator_max_end = children[1].location.line, children[1].location.column
    for token in cursor.get_tokens():
        if operator_min_begin < (token.extent.start.line, token.extent.
            start.column) and operator_max_end >= (token.extent.end.line,
            token.extent.end.column):
            return token
    return None
