@deco.require_methods('POST')
def incoming_chat(request):
  """/_ah/xmpp/message/chat/

  This handles incoming XMPP (chat) messages.

  Just reply saying we ignored the chat.
  """
  try:
    msg = xmpp.Message(request.POST)
  except xmpp.InvalidMessageError, err:
    logging.warn(err % 'Incoming invalid chat message: %s')
    return HttpTextResponse('')
  sts = msg.reply('Sorry, Rietveld does not support chat input')
  logging.debug('XMPP status %r', sts)
  return HttpTextResponse('')
dataset/ETHPy150Open rietveld-codereview/rietveld/codereview/notify_xmpp.py/incoming_chat/swapped operands of `%`