

def getEventItems(self, message):
    query = xpath.XPathQuery('/message/event/items/item')
    items = query.queryForNodes(message)
    return (items or [])

dataset/ETHPy150Open selfsk/nodeset.core/src/nodeset/core/pubsub/agent.py XmppAgent.getEventItems/original