mercurial/util.py
changeset 39904 5fe0b880200e
parent 39777 b63dee7bd0d9
child 39905 4017968f0a1d
--- a/mercurial/util.py	Sat Sep 29 02:02:35 2018 -0400
+++ b/mercurial/util.py	Tue Sep 25 21:16:12 2018 -0400
@@ -112,6 +112,7 @@
 pconvert = platform.pconvert
 poll = platform.poll
 posixfile = platform.posixfile
+readlink = platform.readlink
 rename = platform.rename
 removedirs = platform.removedirs
 samedevice = platform.samedevice
@@ -1841,7 +1842,7 @@
 
 def readlock(pathname):
     try:
-        return os.readlink(pathname)
+        return readlink(pathname)
     except OSError as why:
         if why.errno not in (errno.EINVAL, errno.ENOSYS):
             raise