Mercurial > hg-stable
changeset 17900:47fb48060e36 stable
openpath: specify binary mode and use util.posixfile
follow-up to 0e2846b2482c
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 01 Nov 2012 13:46:03 +0100 |
parents | e0f63ac6fcf3 |
children | a19046744e4e |
files | mercurial/hg.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Thu Nov 01 11:37:40 2012 -0200 +++ b/mercurial/hg.py Thu Nov 01 13:46:03 2012 +0100 @@ -92,7 +92,7 @@ def openpath(ui, path): '''open path with open if local, url.open if remote''' if islocal(path): - return open(util.urllocalpath(path)) + return util.posixfile(util.urllocalpath(path), 'rb') else: return url.open(ui, path)