check-config: specify the mode 'rb' to open the file
Differential Revision: https://phab.mercurial-scm.org/D2045
--- a/contrib/check-config.py Mon Feb 05 13:12:36 2018 +0530
+++ b/contrib/check-config.py Fri Dec 29 05:40:49 2017 +0530
@@ -49,7 +49,7 @@
confsect = ''
carryover = ''
linenum = 0
- for l in open(f):
+ for l in open(f, 'rb'):
linenum += 1
# check topic-like bits