# HG changeset patch # User Augie Fackler # Date 2017-03-03 18:28:24 # Node ID fd3f4bf9325ee6cf3f50b2b3d0b320ce62940c07 # Parent 5cab44fd125775e5990f8717f44376f24bbc6d7c config: load included config files in binary mode I guess we've been getting lucky that this works in Python 2. This fixes loading included config files in Python 3 (it used to fail on the "somebody set up us the BOM" check.) diff --git a/mercurial/config.py b/mercurial/config.py --- a/mercurial/config.py +++ b/mercurial/config.py @@ -169,5 +169,5 @@ class config(object): def read(self, path, fp=None, sections=None, remap=None): if not fp: - fp = util.posixfile(path) + fp = util.posixfile(path, 'rb') self.parse(path, fp.read(), sections, remap, self.read)