mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 1071133 — Make sure mercurial-setup knows how to handle unicode characters. r=gps
This commit is contained in:
parent
75000a49cd
commit
98029cd385
@ -5,6 +5,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from configobj import ConfigObj
|
||||
import codecs
|
||||
import re
|
||||
import os
|
||||
|
||||
@ -43,7 +44,7 @@ class MercurialConfig(object):
|
||||
# other files, this is not supported by ConfigObj, so throw a useful
|
||||
# error saying this.
|
||||
if os.path.exists(infile):
|
||||
with open(infile, 'r') as f:
|
||||
with codecs.open(infile, 'r', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
if line.startswith('%include'):
|
||||
raise HgIncludeException(
|
||||
|
Loading…
Reference in New Issue
Block a user