commit | 468c448bccf4788e57e7f4e484d0285da54dedc7 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Oct 31 11:25:23 1990 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Oct 31 11:25:23 1990 +0000 |
tree | f4c5e5d3f54218e103bb6ab3545130d0a50e0179 | |
parent | 36ddc9e31884d0143d9b23b7f72ddf4f3d45145f [diff] [blame] |
Added S_IMODE() to strip the file type (S_IFMT) from a mode.
diff --git a/Lib/stat.py b/Lib/stat.py index 273745d..fee4965 100644 --- a/Lib/stat.py +++ b/Lib/stat.py
@@ -22,6 +22,8 @@ ST_MTIME = 8 ST_CTIME = 9 +def S_IMODE(mode): + return mode%4096 def S_IFMT(mode): return mode - mode%4096