def pushover(last, typestr):
    if pushcount > 3:
        dprint('Info: Not sending PushOver notification - too many messages for event')
        return
    elif pushenable == False:
        dprint('Info: PushOver notifications disabled.')
        return
    pushmessage = (typestr, last.body, last.code) % 'State: %s Response: %s (%s)'
    pushdata = urllib.urlencode({"token": pushtoken, "user": pushuser, "message": pushmessage})
    try:    
        pushrequest = urllib2.Request(pushurl, pushdata, { "Content-type": "application/x-www-form-urlencoded" })
        socket.setdefaulttimeout(httptimeout)
        pushresponse = urllib2.urlopen(pushrequest, timeout = httptimeout)
    except:
        dprint('Error: Could not send data to Pushover')
dataset/ETHPy150Open guardian/alerta/contrib/watchdog.py/pushover/swapped operands of `%`