You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
491 B

3 years ago
  1. Check the indent:
  2. 114: output += "\n"
  3. Specify the encoding when the json file is loaded:
  4. 46: with open(os.path.join(script_dir, "ipa_xsampa_map.json")) as f:
  5. --> with open(os.path.join(script_dir, "ipa_xsampa_map.json"), encoding="utf-8") as f:
  6. Because unicode is supported in Python 3.6,
  7. 86: line = unicode(line, 'utf-8').strip()
  8. --> line = line.strip()
  9. 117:sys.stdout.write(output.encode("utf-8"))
  10. --> sys.stdout.write(output)
  11. Change std input into arguments.
  12. 12: if len(sys.argv) != 4: