diff mercurial/util.py @ 3859:8c24b6fd5866

fix errors spotted by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 10 Dec 2006 19:41:57 +0100
parents 4f6db0233606
children 8e907b86126b
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -902,7 +902,7 @@ else:
         The return value of a util.fstat(f) may be passed as the st argument.
         """
         if st is None:
-            st = fstat(f)
+            st = fstat(fp)
         return st.st_uid == os.getuid()
 
 def _buildencodefun():