diff mercurial/util_win32.py @ 2448:b77a2ef61b81

replace os.stat with os.lstat in some where.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 16 Jun 2006 12:58:24 -0700
parents a600d9997521
children e6a41cbaa260
line wrap: on
line diff
--- a/mercurial/util_win32.py
+++ b/mercurial/util_win32.py
@@ -162,7 +162,7 @@ def nlinks(pathname):
         fh.Close()
         return res[7]
     except pywintypes.error:
-        return os.stat(pathname).st_nlink
+        return os.lstat(pathname).st_nlink
 
 def testpid(pid):
     '''return True if pid is still running or unable to