Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da14920

Browse files
committed
Close #18281: superfluous stat constants removed from tarfile
1 parent 17ecd1d commit da14920

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

Lib/tarfile.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -139,30 +139,6 @@
139139
"size": int
140140
}
141141

142-
#---------------------------------------------------------
143-
# Bits used in the mode field, values in octal.
144-
#---------------------------------------------------------
145-
S_IFLNK = 0o120000 # symbolic link
146-
S_IFREG = 0o100000 # regular file
147-
S_IFBLK = 0o060000 # block device
148-
S_IFDIR = 0o040000 # directory
149-
S_IFCHR = 0o020000 # character device
150-
S_IFIFO = 0o010000 # fifo
151-
152-
TSUID = 0o4000 # set UID on execution
153-
TSGID = 0o2000 # set GID on execution
154-
TSVTX = 0o1000 # reserved
155-
156-
TUREAD = 0o400 # read by owner
157-
TUWRITE = 0o200 # write by owner
158-
TUEXEC = 0o100 # execute/search by owner
159-
TGREAD = 0o040 # read by group
160-
TGWRITE = 0o020 # write by group
161-
TGEXEC = 0o010 # execute/search by group
162-
TOREAD = 0o004 # read by other
163-
TOWRITE = 0o002 # write by other
164-
TOEXEC = 0o001 # execute/search by other
165-
166142
#---------------------------------------------------------
167143
# initialization
168144
#---------------------------------------------------------

0 commit comments

Comments
 (0)