def _onPresence(self, presence):
        type = presence.getAttribute("type", "available")
        try:
            handler = getattr(self, (type.capitalize()) % '_onPresence%s')
        except AttributeError:
            return
        else:
            handler(presence)
dataset/ETHPy150Open ralphm/wokkel/wokkel/xmppim.py/PresenceClientProtocol._onPresence/swapped operands of `%`