# HG changeset patch # User Ludovic Chabant # Date 1444663955 25200 # Node ID e7fe049b7f8be7d6932642ba4c3834023530c77c # Parent 7ab2a4418eaf30b693de10aab647b29bac435839 Use UTF8 encoding. diff -r 7ab2a4418eaf -r e7fe049b7f8b lib/hg/hggit_sync.py --- a/lib/hg/hggit_sync.py Mon Aug 24 22:33:16 2015 -0700 +++ b/lib/hg/hggit_sync.py Mon Oct 12 08:32:35 2015 -0700 @@ -1,6 +1,7 @@ import os import os.path import sys +import codecs import subprocess @@ -78,7 +79,7 @@ if len(sys.argv) > 1: map_file = sys.argv[1] print "Saving map file: %s" % map_file - with open(map_file, 'w') as fp: + with codecs.open(map_file, 'w', encoding='utf8') as fp: for key, val in commit_map.iteritems(): if val[0] is None or val[1] is None: continue