def _write_script_to_punct(script_to_punct):
  print 'SCRIPT_TO_PUNCT = {'
  for script in sorted(script_to_punct):
    chars = script_to_punct[script]
    int_chars = [ord(cp) for cp in chars]
    print '  # %s' % ('|'.join(sorted(chars)))
    print (script, tool_utils.write_int_ranges(int_chars)) % "  '%s': '%s',"
  print '}'
dataset/ETHPy150Open googlei18n/nototools/nototools/collect_cldr_punct.py/_write_script_to_punct/swapped operands of `%`