Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 30620:bb77654dc7ae
py3: replace os.sep with pycompat.ossep (part 3 of 4)
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 17 Dec 2016 20:14:24 +0530 |
parents | d623cc6b3742 |
children | f1c9fafcbf46 |
line wrap: on
line diff
--- a/mercurial/windows.py Sat Dec 17 20:02:50 2016 +0530 +++ b/mercurial/windows.py Sat Dec 17 20:14:24 2016 +0530 @@ -215,7 +215,7 @@ msvcrt.setmode(fno(), os.O_BINARY) def pconvert(path): - return path.replace(os.sep, '/') + return path.replace(pycompat.ossep, '/') def localpath(path): return path.replace('/', '\\') @@ -316,7 +316,7 @@ return executable return None - if os.sep in command: + if pycompat.ossep in command: return findexisting(command) for path in os.environ.get('PATH', '').split(pycompat.ospathsep):