Viewing File: /opt/alt/python311/lib64/python3.11/importlib/resources/__pycache__/_legacy.cpython-311.opt-2.pyc



f
ddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
eejefZeZdZdZededed	e	fd
Zededed	efdZe		ddedededed	e
f
dZe		ddedededed	ef
dZeded	eefdZededed	efdZededed	eejfdZdS)N)UnionIterableContextManagerBinaryIOTextIOAny)_commoncFtjfd}|S)Nc\tjjdtd|i|S)Nz is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.)
stacklevel)warningswarn__name__DeprecationWarning)argskwargsfuncs  B/opt/alt/python311/lib64/python3.11/importlib/resources/_legacy.pywrapperzdeprecated.<locals>.wrappersR
}
P
P
P
	
	
	
	
tT$V$$$)	functoolswraps)rrs` r
deprecatedrs8_T%%%%%Nrc	t|}tj|\}}|rt	|d|S)Nz must be only a file name)strospathsplit
ValueError)rstr_pathparent	file_names    rnormalize_pathr%sQ4yyH

h//FI
?D===>>>rpackageresourcereturncr	tj|t|zdS)Nrbr
filesr%openr&r's  ropen_binaryr/+s0NM'""^H%=%==CCDIIIrcp	tj|t|zSN)r
r,r%
read_bytesr.s  rread_binaryr31s.5M'""^H%=%==IIKKKrutf-8strictencodingerrorscx	tj|t|zd||S)Nr)r6r7r+)r&r'r6r7s    r	open_textr:7sDMM'""^H%=%==CChvDrc	t||||5}|cdddS#1swxYwYdSr1)r:read)r&r'r6r7fps     r	read_textr>Ds

7Hh	7	72wwyys599cd	dtj|DS)Ncg|]	}|j
S)name).0rs  r
<listcomp>zcontents.<locals>.<listcomp>\sCCC$DICCCr)r
r,iterdir)r&s rcontentsrFTs4DC'-"8"8"@"@"B"BCCCCrrBc	t|tfdtj|DS)Nc3VK|]#}|jko|V$dSr1)rBis_file)rCtraversabler's  r	<genexpr>zis_resource.<locals>.<genexpr>fsP	H$>)<)<)>)>r)r%anyr
r,rE)r&rBr's  @ris_resourcerM_sed##H"=1199;;rcp	tjtj|t|zSr1)r
as_filer,r%r.s  rrrls0
?7=11N84L4LLMMMr)r4r5)rrpathlibtypesrtypingrrrrrrr

ModuleTyperPackageResourcerr%r/bytesr3r:r>rFboolrMPathrrArr<module>rZs				IIIIIIIIIIIIIIII
 #%
&


JJHJJJJJ
LLHLLLLL
			
			
		
					

	
	DgD(3-DDDD							N
NNGL!NNNNNNr
Back to Directory File Manager