]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added S_IMODE() to strip the file type (S_IFMT) from a mode.
authorGuido van Rossum <guido@python.org>
Wed, 31 Oct 1990 11:25:23 +0000 (11:25 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 31 Oct 1990 11:25:23 +0000 (11:25 +0000)
Lib/stat.py

index 273745d8035f869ccec4d6da8242e6bb6a5b3df0..fee49659a700cf01e25e3fff5c5a702aa822bd11 100644 (file)
@@ -22,6 +22,8 @@ ST_ATIME = 7
 ST_MTIME = 8
 ST_CTIME = 9
 
+def S_IMODE(mode):
+       return mode%4096
 def S_IFMT(mode):
        return mode - mode%4096