##// END OF EJS Templates
openpath: specify binary mode and use util.posixfile...
Adrian Buehlmann -
r17900:47fb4806 stable
parent child Browse files
Show More
@@ -92,7 +92,7 b' def islocal(repo):'
92 def openpath(ui, path):
92 def openpath(ui, path):
93 '''open path with open if local, url.open if remote'''
93 '''open path with open if local, url.open if remote'''
94 if islocal(path):
94 if islocal(path):
95 return open(util.urllocalpath(path))
95 return util.posixfile(util.urllocalpath(path), 'rb')
96 else:
96 else:
97 return url.open(ui, path)
97 return url.open(ui, path)
98
98
General Comments 0
You need to be logged in to leave comments. Login now