mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
closes bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH-8703)
This commit is contained in:
parent
a7548230ff
commit
b92c526ed5
3 changed files with 12 additions and 0 deletions
|
@ -111,6 +111,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_IFREG, "-"),
|
||||
(S_IFBLK, "b"),
|
||||
(S_IFDIR, "d"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue