Mercurial > hg
diff hgext/convert/gnuarch.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 | 28626957395a |
children | 058c2468b2f5 |
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py Sat Sep 29 02:02:35 2018 -0400 +++ b/hgext/convert/gnuarch.py Tue Sep 25 21:16:12 2018 -0400 @@ -223,7 +223,7 @@ def _getfile(self, name, rev): mode = os.lstat(os.path.join(self.tmppath, name)).st_mode if stat.S_ISLNK(mode): - data = os.readlink(os.path.join(self.tmppath, name)) + data = util.readlink(os.path.join(self.tmppath, name)) if mode: mode = 'l' else: