check-config: specify the mode 'rb' to open the file
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 29 Dec 2017 05:40:49 +0530
changeset 35959 143d7b27b09c
parent 35958 e35616bb6ede
child 35960 2912bed9b0c7
check-config: specify the mode 'rb' to open the file Differential Revision: https://phab.mercurial-scm.org/D2045
contrib/check-config.py
--- 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