summaryrefslogtreecommitdiff
path: root/Lib/stat.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-01-15 01:36:40 +0000
committerTim Peters <tim.peters@gmail.com>2001-01-15 01:36:40 +0000
commit6cc7b9985643160c46e3d5d23a929cbce79aac2f (patch)
tree65f61570cc3001beff4686ada389858886671ed2 /Lib/stat.py
parenta263db1bd8dfe44e425d5bb23e8a6ae17cbb7cb0 (diff)
downloadcpython-6cc7b9985643160c46e3d5d23a929cbce79aac2f.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/stat.py')
-rw-r--r--Lib/stat.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/stat.py b/Lib/stat.py
index 9280ce61d9..70750d8b1a 100644
--- a/Lib/stat.py
+++ b/Lib/stat.py
@@ -24,10 +24,10 @@ ST_CTIME = 9
# Extract bits from the mode
def S_IMODE(mode):
- return mode & 07777
+ return mode & 07777
def S_IFMT(mode):
- return mode & 0170000
+ return mode & 0170000
# Constants used as S_IFMT() for various file types
# (not all are implemented on all systems)
@@ -43,25 +43,25 @@ S_IFSOCK = 0140000
# Functions to test for each file type
def S_ISDIR(mode):
- return S_IFMT(mode) == S_IFDIR
+ return S_IFMT(mode) == S_IFDIR
def S_ISCHR(mode):
- return S_IFMT(mode) == S_IFCHR
+ return S_IFMT(mode) == S_IFCHR
def S_ISBLK(mode):
- return S_IFMT(mode) == S_IFBLK
+ return S_IFMT(mode) == S_IFBLK
def S_ISREG(mode):
- return S_IFMT(mode) == S_IFREG
+ return S_IFMT(mode) == S_IFREG
def S_ISFIFO(mode):
- return S_IFMT(mode) == S_IFIFO
+ return S_IFMT(mode) == S_IFIFO
def S_ISLNK(mode):
- return S_IFMT(mode) == S_IFLNK
+ return S_IFMT(mode) == S_IFLNK
def S_ISSOCK(mode):
- return S_IFMT(mode) == S_IFSOCK
+ return S_IFMT(mode) == S_IFSOCK
# Names for permission bits