posix: octal
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 21 Jun 2015 21:37:48 -0700
changeset 25716 c168bf22b56bd55c4bc49bfd728d463ec0e68eec
parent 25715 a1649a5df572f3905007af8f2346794171c71e65
child 25717 ffd59bf8d48411a4e32bf5175786b69e765d9cd4
push id14
push usergszorc@mozilla.com
push dateMon, 22 Jun 2015 07:28:19 +0000
posix: octal
mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -588,17 +588,17 @@ class unixdomainserver(socket.socket):
             okayifmissing(os.rmdir, os.path.dirname(self.realpath))
 
 def statislink(st):
     '''check whether a stat result is a symlink'''
     return st and stat.S_ISLNK(st.st_mode)
 
 def statisexec(st):
     '''check whether a stat result is an executable file'''
-    return st and (st.st_mode & 0100 != 0)
+    return st and (st.st_mode & 0o100 != 0)
 
 def poll(fds):
     """block until something happens on any file descriptor
 
     This is a generic helper that will check for any activity
     (read, write.  exception) and return the list of touched files.
 
     In unsupported cases, it will raise a NotImplementedError"""