def _WriteSimpleXMLElement(outfile, name, value, indent):
  """Writes a simple XML element.

  Args:
    outfile: File object we write the XML element to.
    name: A string, the name of XML element.
    value: A Python object, whose string representation will be used
      as the value of the XML element.
    indent: A string, prepended to each line of generated output.
  """
  value_str = _StrOrUnicode(value)
  if isinstance(value, bool):
    # Display boolean values as the C++ flag library does: no caps.
    value_str = value_str.lower()
  safe_value_str = _MakeXMLSafe(value_str)
  outfile.write((indent, name, safe_value_str, name) % '%s<%s>%s</%s>\n')
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/python-gflags/gflags.py/_WriteSimpleXMLElement/swapped operands of `%`