changeset 3997:3f0ba82c103f

exec: remove last flag from is_exec
author Matt Mackall <mpm@selenic.com>
date Fri, 29 Dec 2006 20:04:31 -0600
parents c190df14338c
children 315d47991fd4
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -710,7 +710,7 @@ def checkexec(path):
 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 @@ if os.name == 'nt':
         '''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 @@ else:
             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)