aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Lib/stat.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/python3/src/Lib/stat.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Lib/stat.py')
-rw-r--r--contrib/tools/python3/src/Lib/stat.py34
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/tools/python3/src/Lib/stat.py b/contrib/tools/python3/src/Lib/stat.py
index fc024db3f4..91ef0f7999 100644
--- a/contrib/tools/python3/src/Lib/stat.py
+++ b/contrib/tools/python3/src/Lib/stat.py
@@ -40,10 +40,10 @@ S_IFREG = 0o100000 # regular file
S_IFIFO = 0o010000 # fifo (named pipe)
S_IFLNK = 0o120000 # symbolic link
S_IFSOCK = 0o140000 # socket file
-# Fallbacks for uncommon platform-specific constants
-S_IFDOOR = 0
-S_IFPORT = 0
-S_IFWHT = 0
+# Fallbacks for uncommon platform-specific constants
+S_IFDOOR = 0
+S_IFPORT = 0
+S_IFWHT = 0
# Functions to test for each file type
@@ -75,18 +75,18 @@ def S_ISSOCK(mode):
"""Return True if mode is from a socket."""
return S_IFMT(mode) == S_IFSOCK
-def S_ISDOOR(mode):
- """Return True if mode is from a door."""
- return False
-
-def S_ISPORT(mode):
- """Return True if mode is from an event port."""
- return False
-
-def S_ISWHT(mode):
- """Return True if mode is from a whiteout."""
- return False
-
+def S_ISDOOR(mode):
+ """Return True if mode is from a door."""
+ return False
+
+def S_ISPORT(mode):
+ """Return True if mode is from an event port."""
+ return False
+
+def S_ISWHT(mode):
+ """Return True if mode is from a whiteout."""
+ return False
+
# Names for permission bits
S_ISUID = 0o4000 # set UID bit
@@ -127,7 +127,7 @@ SF_SNAPSHOT = 0x00200000 # file is a snapshot file
_filemode_table = (
((S_IFLNK, "l"),
- (S_IFSOCK, "s"), # Must appear before IFREG and IFDIR as IFSOCK == IFREG | IFDIR
+ (S_IFSOCK, "s"), # Must appear before IFREG and IFDIR as IFSOCK == IFREG | IFDIR
(S_IFREG, "-"),
(S_IFBLK, "b"),
(S_IFDIR, "d"),