# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1514506249 -19800 # Node ID 143d7b27b09c3d04353b146903243d3ad8486507 # Parent e35616bb6ede1b75561e850c3f41ae5637cca2ba check-config: specify the mode 'rb' to open the file Differential Revision: https://phab.mercurial-scm.org/D2045 diff -r e35616bb6ede -r 143d7b27b09c 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