Mercurial > public > mercurial-scm > hg-stable
diff mercurial/posix.py @ 39909: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 | a4aa77b84efd |
children | bd0874977a5e |
line wrap: on
line diff
--- a/mercurial/posix.py Sat Sep 29 02:02:35 2018 -0400 +++ b/mercurial/posix.py Tue Sep 25 21:16:12 2018 -0400 @@ -43,6 +43,7 @@ def oslink(src, dst): raise OSError(errno.EINVAL, 'hardlinks not supported: %s to %s' % (src, dst)) +readlink = os.readlink unlink = os.unlink rename = os.rename removedirs = os.removedirs