Bug 1252440 - Ignore unicode characters that cannot be converted when building graph r=wcosta

MozReview-Commit-ID: 5CxG7NMivBO
This commit is contained in:
Gregory Arndt
2016-03-01 07:41:27 -06:00
parent fbfe1f589c
commit b9d8288874

View File

@@ -337,7 +337,7 @@ class Graph(object):
len(vcs_info.changesets))
for c in vcs_info.changesets:
sys.stderr.write('%s %s\n' % (
c['node'][0:12], c['desc'].splitlines()[0]))
c['node'][0:12], c['desc'].splitlines()[0].encode('ascii', 'ignore')))
changed_files |= set(c['files'])