changeset 35919:143d7b27b09c

check-config: specify the mode 'rb' to open the file Differential Revision: https://phab.mercurial-scm.org/D2045
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 29 Dec 2017 05:40:49 +0530
parents e35616bb6ede
children 2912bed9b0c7
files contrib/check-config.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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