Mercurial > hg
changeset 37576:6ef94f24aa82
py3: make sure we open file in bytes mode
Differential Revision: https://phab.mercurial-scm.org/D3274
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 11 Apr 2018 22:36:16 +0530 |
parents | 230eb9594150 |
children | e7eea8582afa |
files | mercurial/sparse.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/sparse.py Sat Apr 07 01:37:25 2018 +0900 +++ b/mercurial/sparse.py Wed Apr 11 22:36:16 2018 +0530 @@ -579,7 +579,7 @@ # part of the active rules. changed = False for p in paths: - with util.posixfile(util.expandpath(p)) as fh: + with util.posixfile(util.expandpath(p), mode='rb') as fh: raw = fh.read() iincludes, iexcludes, iprofiles = parseconfig(repo.ui, raw)