##// END OF EJS Templates
posix: use open() instead of file()
Augie Fackler -
r31505:d96d010b default
parent child Browse files
Show More
@@ -181,7 +181,7 b' def checkexec(path):'
181 except OSError as e:
181 except OSError as e:
182 if e.errno != errno.ENOENT:
182 if e.errno != errno.ENOENT:
183 raise
183 raise
184 file(checknoexec, 'w').close() # might fail
184 open(checknoexec, 'w').close() # might fail
185 m = os.stat(checknoexec).st_mode
185 m = os.stat(checknoexec).st_mode
186 if m & EXECFLAGS == 0:
186 if m & EXECFLAGS == 0:
187 # check-exec is exec and check-no-exec is not exec
187 # check-exec is exec and check-no-exec is not exec
General Comments 0
You need to be logged in to leave comments. Login now