Mercurial > public > mercurial-scm > hg
diff mercurial/vfs.py @ 39904:5fe0b880200e
py3: convert os.readlink() path to native strings on Windows
Windows insisted that it needs to be str. I skipped the stuff in the posix
module, and left `tests/f` and `run-tests.py` alone for now.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 25 Sep 2018 21:16:12 -0400 |
parents | 3dd34b401bc2 |
children | 34f15db81cf0 8d9f366b7f19 |
line wrap: on
line diff
--- a/mercurial/vfs.py Sat Sep 29 02:02:35 2018 -0400 +++ b/mercurial/vfs.py Tue Sep 25 21:16:12 2018 -0400 @@ -206,7 +206,7 @@ return util.rename(srcpath, dstpath) def readlink(self, path): - return os.readlink(self.join(path)) + return util.readlink(self.join(path)) def removedirs(self, path=None): """Remove a leaf directory and all empty intermediate ones