mercurial/posix.py
changeset 8657 3fa92c618624
parent 8614 573734e7e6d0
child 8761 0289f384e1e5
--- a/mercurial/posix.py	Sat May 30 23:20:30 2009 +0200
+++ b/mercurial/posix.py	Sat May 30 23:42:35 2009 +0200
@@ -139,13 +139,8 @@
         return _("stopped by signal %d") % val, val
     raise ValueError(_("invalid exit code"))
 
-def isowner(fp, st=None):
-    """Return True if the file object f belongs to the current user.
-
-    The return value of a util.fstat(f) may be passed as the st argument.
-    """
-    if st is None:
-        st = fstat(fp)
+def isowner(st):
+    """Return True if the stat object st is from the current user."""
     return st.st_uid == os.getuid()
 
 def find_exe(command):