# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-12-29 00:10:49 # Node ID 143d7b27b09c3d04353b146903243d3ad8486507 # Parent e35616bb6ede1b75561e850c3f41ae5637cca2ba check-config: specify the mode 'rb' to open the file Differential Revision: https://phab.mercurial-scm.org/D2045 diff --git a/contrib/check-config.py b/contrib/check-config.py --- a/contrib/check-config.py +++ b/contrib/check-config.py @@ -49,7 +49,7 @@ def main(args): confsect = '' carryover = '' linenum = 0 - for l in open(f): + for l in open(f, 'rb'): linenum += 1 # check topic-like bits