##// END OF EJS Templates
ui: explicitly open config files in binary mode...
Augie Fackler -
r30348:9df29b7c default
parent child Browse files
Show More
@@ -176,7 +176,7 b' class ui(object):'
176 def readconfig(self, filename, root=None, trust=False,
176 def readconfig(self, filename, root=None, trust=False,
177 sections=None, remap=None):
177 sections=None, remap=None):
178 try:
178 try:
179 fp = open(filename)
179 fp = open(filename, u'rb')
180 except IOError:
180 except IOError:
181 if not sections: # ignore unless we were looking for something
181 if not sections: # ignore unless we were looking for something
182 return
182 return
@@ -9,6 +9,6 b' The full traceback is hidden to have a s'
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
10 > done
10 > done
11 version
11 version
12 TypeError: startswith first arg must be str or a tuple of str, not bytes
12 TypeError: cannot use a string pattern on a bytes-like object
13 debuginstall
13 debuginstall
14 TypeError: startswith first arg must be str or a tuple of str, not bytes
14 TypeError: cannot use a string pattern on a bytes-like object
General Comments 0
You need to be logged in to leave comments. Login now