branch | stable |
changeset 17900 | 47fb48060e36 |
parent 17895 | 17c030014ddf |
child 17922 | 7f5dab94e48c |
--- 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)