=Og ddlZddlZddlZddlZddlZddlmZmZmZm Z m Z m Z ddl m Z eejefZeZdZdZededed e fd Zededed efd Ze 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..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|z dS)Nrbr filesr%openr&r's r open_binaryr/+s0N M' " "^H%=%= = C CD I IIrcp tj|t|z SN)r r,r% read_bytesr.s r read_binaryr31s.5 M' " "^H%=%= = I I K KKrutf-8strictencodingerrorscx tj|t|z d||S)Nr)r6r7r+)r&r'r6r7s r open_textr:7sDM M' " "^H%=%= = C C hv 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 zcontents..\s C C C$DI C C Cr)r r,iterdir)r&s rcontentsrFTs4 D C'-"8"8"@"@"B"B C C CCrrBc t|tfdtj|DS)Nc3VK|]#}|jko|V$dSr1)rBis_file)rC traversabler's r zis_resource..fsP  H$>)<)<)>)>r)r%anyr r,rE)r&rBr's @r is_resourcerM_sed##H "=1199;;  rcp tjtj|t|z Sr1)r as_filer,r%r.s rrrls0  ?7=11N84L4LL M MMr)r4r5)rrpathlibtypesrtypingrrrrrrr ModuleTyperPackageResourcerr%r/bytesr3r:r>rFboolrMPathrrArrrZs  IIIIIIIIIIIIIIII  #% &        JJHJJJJ J  LLHLLLL L                                DgD(3-DDD D           N  N NGL! N N N  N N Nr