summaryrefslogtreecommitdiff
path: root/Lib/stat.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2011-06-27 23:41:53 -0700
committerNed Deily <nad@acm.org>2011-06-27 23:41:53 -0700
commit43e1054e38ebd3de91b51531cda8e2fd580c0207 (patch)
tree36d713b9f71d61c3bb5009f4ed907af08db86dc0 /Lib/stat.py
parent64e59959f21711bc3db36230eccfaa485faf34f9 (diff)
downloadcpython-git-43e1054e38ebd3de91b51531cda8e2fd580c0207.tar.gz
Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these functions (*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). Also add additional tests for os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
Diffstat (limited to 'Lib/stat.py')
-rw-r--r--Lib/stat.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/stat.py b/Lib/stat.py
index 4a9d30c16c..abed5c9e0f 100644
--- a/Lib/stat.py
+++ b/Lib/stat.py
@@ -87,6 +87,8 @@ UF_IMMUTABLE = 0x00000002
UF_APPEND = 0x00000004
UF_OPAQUE = 0x00000008
UF_NOUNLINK = 0x00000010
+UF_COMPRESSED = 0x00000020 # OS X: file is hfs-compressed
+UF_HIDDEN = 0x00008000 # OS X: file should not be displayed
SF_ARCHIVED = 0x00010000
SF_IMMUTABLE = 0x00020000
SF_APPEND = 0x00040000