def _aslist(obj):
    if obj is None:
        return []
    elif isinstance(obj, (list, tuple)):
        return obj
    else:
        return [obj]
Send a message over XMPP.
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/util/pastescript/loadwsgi.py/_aslist--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/notify/xmpp.py/send_message