changeset 31505:d96d010be4fa

posix: use open() instead of file()
author Augie Fackler <augie@google.com>
date Sun, 19 Mar 2017 01:05:48 -0400
parents 73aa13bc8dac
children 53575feed7c0
files mercurial/posix.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/posix.py	Sun Mar 19 01:05:28 2017 -0400
+++ b/mercurial/posix.py	Sun Mar 19 01:05:48 2017 -0400
@@ -181,7 +181,7 @@
                     except OSError as e:
                         if e.errno != errno.ENOENT:
                             raise
-                        file(checknoexec, 'w').close() # might fail
+                        open(checknoexec, 'w').close() # might fail
                         m = os.stat(checknoexec).st_mode
                     if m & EXECFLAGS == 0:
                         # check-exec is exec and check-no-exec is not exec