D2045: check-config: specify the mode 'rb' to open the file

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Feb 5 09:27:17 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG143d7b27b09c: check-config: specify the mode 'rb' to open the file (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2045?vs=5203&id=5216

REVISION DETAIL
  https://phab.mercurial-scm.org/D2045

AFFECTED FILES
  contrib/check-config.py

CHANGE DETAILS

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 @@
         confsect = ''
         carryover = ''
         linenum = 0
-        for l in open(f):
+        for l in open(f, 'rb'):
             linenum += 1
 
             # check topic-like bits



To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list