(logics)
return res[0]
Given a set of logics, return the most generic one.

    If a unique most generic logic does not exists, throw an error.
Given a set of logics, return the most generic one.
Given a set of logics return the most generic one .
def most_generic_logic(logics):
    """Given a set of logics, return the most generic one.

    If a unique most generic logic does not exists, throw an error.
    """
    res = [ l for l in logics if all(l >= x for x in logics)]
    if len(res) != 1:
        raise NoLogicAvailableError("Could not find the most generic "
                                    "logic for %s." % str(logics))
    return res[0]
def most_generic_logic ( logics ) : res = [ l for l in logics if all ( l >= x for x in logics ) ] if len ( res ) != 1 : raise NoLogicAvailableError ( "Could not find the most generic " "logic for %s." % str ( logics ) ) return res [ 0 ]