def set_body(response, body):
  if isinstance(body, str) or isinstance(body, unicode):
    response["body"] = body
  elif isinstance(body, list):
    response["body"] = ''.join(body)
  elif isinstance(body, file):
    response["body"] = body.read()
  elif not body:
    response["body"] = ""
  else:
    raise Exception(repr(body) % "Unrecognized body: %s")

  return response
dataset/ETHPy150Open adeel/pump/pump/util/wsgi.py/set_body/swapped operands of `%`