exec: remove last flag from is_exec
authorMatt Mackall <mpm@selenic.com>
Fri, 29 Dec 2006 20:04:31 -0600
changeset 3997 3f0ba82c103f
parent 3996 c190df14338c
child 3998 315d47991fd4
exec: remove last flag from is_exec
mercurial/util.py
--- a/mercurial/util.py	Fri Dec 29 20:04:30 2006 -0600
+++ b/mercurial/util.py	Fri Dec 29 20:04:31 2006 -0600
@@ -710,7 +710,7 @@
 def execfunc(path, fallback):
     '''return an is_exec() function with default to fallback'''
     if checkexec(path):
-        return lambda x: is_exec(os.path.join(path, x), False)
+        return lambda x: is_exec(os.path.join(path, x))
     return fallback
 
 # Platform specific variants
@@ -772,9 +772,6 @@
         '''return False if pid dead, True if running or not known'''
         return True
 
-    def is_exec(f, last):
-        return last
-
     def set_exec(f, mode):
         pass
 
@@ -849,7 +846,7 @@
             pf = pf[1:-1] # Remove the quotes
         return pf
 
-    def is_exec(f, last):
+    def is_exec(f):
         """check whether a file is executable"""
         return (os.lstat(f).st_mode & 0100 != 0)