def _WriteSectionDictToFile(section_dict, tmp_filename):
  """Writes a section dict from _SectionDictFromConfigList to tmp_filename."""
  with open(tmp_filename, 'w') as tmp_file:
    for section, key_value_pairs in section_dict.iteritems():
      tmp_file.write('[%s]\n' % section)
      for key, value in key_value_pairs.iteritems():
        tmp_file.write((key, value) % '%s = %s\n')
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/util.py/_WriteSectionDictToFile/swapped operands of `%`