diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-15 01:36:40 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-15 01:36:40 (GMT) |
commit | 495ad3c8ccb9ed3554177a3e8687676c78e667de (patch) | |
tree | d19e1856ac8aa7f3059ef66646d316393752da90 /Lib/stat.py | |
parent | 0c9886d589ddebf32de0ca3f027a173222ed383a (diff) | |
download | cpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.zip cpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.tar.gz cpython-495ad3c8ccb9ed3554177a3e8687676c78e667de.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/stat.py')
-rw-r--r-- | Lib/stat.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/stat.py b/Lib/stat.py index 9280ce6..70750d8 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 |