def expose(*args, **kwargs):
    """Ensure that only JSON, and not XML, is supported."""
    if kwargs not in 'rest_content_types':
        kwargs['rest_content_types'] = ('json',)
    return wsme_pecan.wsexpose(*args, **kwargs)
dataset/ETHPy150Open openstack/ironic/ironic/api/expose.py/expose/swapped operands of `not in`