ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/distutils/__pycache__/filelist.cpython-38.opt-2.pyc
U

e5d 2@sddlZddlZddlZddlZddlmZddlmZmZddl	m
Z
GdddZddZej
fd	d
ZddZdddZdS)Nconvert_path)DistutilsTemplateErrorDistutilsInternalError)logc@sxeZdZdddZddZejfddZdd	Zd
dZ	dd
Z
ddZddZddZ
ddZdddZdddZdS)FileListNcCsd|_g|_dSN)allfilesfiles)selfwarndebug_printr*/usr/lib64/python3.8/distutils/filelist.py__init__szFileList.__init__cCs
||_dSr)r	)rr	rrrset_allfiles#szFileList.set_allfilescCst||_dSr)findallr	)rdirrrrr&szFileList.findallcCsddlm}|rt|dS)Nr)DEBUG)Zdistutils.debugrprint)rmsgrrrrr
)szFileList.debug_printcCs|j|dSr)r
append)ritemrrrr3szFileList.appendcCs|j|dSr)r
extend)ritemsrrrr6szFileList.extendcCs<tttjj|j}g|_|D]}|jtjj|qdSr)sortedmapospathsplitr
rjoin)rZsortable_filesZ
sort_tuplerrrsort9sz
FileList.sortcCs@tt|jdddD]$}|j||j|dkr|j|=qdS)Nr)rangelenr
)rirrrremove_duplicatesCszFileList.remove_duplicatescCs|}|d}d}}}|dkrTt|dkr<td|dd|ddD}n~|dkrt|d	krttd
|t|d}dd|ddD}n:|dkrt|dkrtd
|t|d}ntd|||||fS)Nr)includeexcludeglobal-includeglobal-excludez&'%s' expects <pattern1> <pattern2> ...cSsg|]}t|qSrr.0wrrr
<listcomp>Wsz1FileList._parse_template_line.<locals>.<listcomp>r")recursive-includerecursive-excludez,'%s' expects <dir> <pattern1> <pattern2> ...cSsg|]}t|qSrrr-rrrr0]s)graftprunez#'%s' expects a single <dir_pattern>zunknown action '%s')rr%rr)rlineZwordsactionpatternsrdir_patternrrr_parse_template_lineLs0zFileList._parse_template_linecCs@||\}}}}|dkrV|dd||D]}|j|dds2td|q2n|dkr|dd||D]}|j|ddsvtd	|qvn|d
kr|dd||D]}|j|ddstd
|qn^|dkr(|dd||D]"}|j|ddstd|qn|dkrv|d|d|f|D]$}|j||dsNtd||qNn|dkr|d|d|f|D]$}|j||dstd||qnx|dkr|d||jd|ds<td|nB|dkr0|d||jd|ds<td|ntd|dS)Nr(zinclude  r")anchorz%warning: no files found matching '%s'r)zexclude z9warning: no previously-included files found matching '%s'r*zglobal-include rz>warning: no files found matching '%s' anywhere in distributionr+zglobal-exclude zRwarning: no previously-included files matching '%s' found anywhere in distributionr1zrecursive-include %s %s)prefixz:warning: no files found matching '%s' under directory '%s'r2zrecursive-exclude %s %szNwarning: no previously-included files matching '%s' found under directory '%s'r4zgraft z+warning: no directories found matching '%s'r5zprune z6no previously-included directories found matching '%s'z'this cannot happen: invalid action '%s')r:r
r include_patternrrexclude_patternr)rr6r7r8rr9patternrrrprocess_template_linehs









zFileList.process_template_liner"rcCsld}t||||}|d|j|jdkr4||jD],}||r:|d||j|d}q:|S)NFz%include_pattern: applying regex r'%s'z adding T)translate_patternr
r@r	rsearchr
r)rr@r<r=is_regexfiles_found
pattern_renamerrrr>s


zFileList.include_patterncCsrd}t||||}|d|jtt|jdddD]4}||j|r8|d|j||j|=d}q8|S)NFz%exclude_pattern: applying regex r'%s'r"r#z
 removing T)rBr
r@r$r%r
rC)rr@r<r=rDrErFr&rrrr?szFileList.exclude_pattern)NN)r"Nr)r"Nr)__name__
__module____qualname__rrrcurdirrr
rrr!r'r:rAr>r?rrrrrs


	L
,rcCs&ddtj|ddD}ttjj|S)Ncss,|]$\}}}|D]}tj||VqqdSr)rrr )r.basedirsr
filerrr	<genexpr>sz#_find_all_simple.<locals>.<genexpr>T)followlinks)rwalkfilterrisfile)rZresultsrrr_find_all_simplesrTcCs6t|}|tjkr.tjtjj|d}t||}t|S)N)start)	rTrrK	functoolspartialrrelpathrlist)rr
Zmake_relrrrrs


rcCs8t|}tj}tjdkrd}d|}td||}|S)N\z\\\\z\1[^%s]z((?<!\\)(\\\\)*)\.)fnmatch	translatersepresub)r@rFr]Zescapedrrr
glob_to_res

r`r"c
Cs|rt|trt|S|Stdd\}}}|r>t|}nd}|dk	rt|}|t|t|t|}tj}	tjdkrd}	|t|t|t|}d|||	||f}n|rd||t|df}t|S)N_rZz\\z%s\A%s%s.*%s%sz%s\A%s)	
isinstancestrr^compiler`	partitionr%rr])
r@r<r=rDrUraendrFZ	prefix_rer]rrrrB%s(


rB)r"Nr)rr^r[rVZdistutils.utilrZdistutils.errorsrrZ	distutilsrrrTrKrr`rBrrrr<module>si