Submitter | Augie Fackler |
---|---|
Date | March 19, 2017, 6:26 p.m. |
Message ID | <5ac56851f3529c159555.1489947978@imladris.local> |
Download | mbox | patch |
Permalink | /patch/19454/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/posix.py b/mercurial/posix.py --- a/mercurial/posix.py +++ b/mercurial/posix.py @@ -181,7 +181,7 @@ def checkexec(path): 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