Ë ‹9.ÑÀBwã óR—ddlZddlZddlZddlZddlZddlmZmZmZm Z m Z m Z ddl m Z eejefZeZde defd„Zded ede fd „Zded edefd „Z dded ed ed ede f d„Z dded ed ed edef d„Zdedeefd„Zdededefd„Zded edeej6fd„Zy)éN)ÚUnionÚIterableÚContextManagerÚBinaryIOÚTextIOÚAnyé)Ú_commonÚpathÚreturncó€—t|«}tjj|«\}}|rt |›d�«‚|S)z€Normalize a path by ensuring it is a string. If the resulting string contains path separators, an exception is raised. z must be only a file name)ÚstrÚosr ÚsplitÚ ValueError)r Ústr_pathÚparentÚ file_names ú2/usr/lib/python3.12/importlib/resources/_legacy.pyÚnormalize_pathrs@€ô �4‹y€HÜŸ™Ÿ ™  hÓ/Ñ€FˆI٠ܘD˜8Ð#<Ð=Ó>Ð>Ø ÐóÚpackageÚresourcecób—tj|«t|«z jd«S)zDReturn a file-like object opened for binary reading of the resource.Úrb©r ÚfilesrÚopen©rrs rÚ open_binaryr s&€ä �M‰M˜'Ó "¤^°HÓ%=Ñ =× CÑ CÀDÓ IÐIrcó`—tj|«t|«z j«S)z+Return the binary contents of the resource.)r rrÚ read_bytesrs rÚ read_binaryr# s$€ä �M‰M˜'Ó "¤^°HÓ%=Ñ =× IÑ IÓ KÐKrÚencodingÚerrorscóh—tj|«t|«z jd||¬«S)zBReturn a file-like object opened for text reading of the resource.Úr)r$r%r)rrr$r%s rÚ open_textr(%s7€ô �M‰M˜'Ó "¤^°HÓ%=Ñ =× CÑ CØ �h vð Dó ðrcój—t||||«5}|j«cddd«S#1swYyxYw)z‹Return the decoded string of the resource. The decoding-related arguments have the same semantics as those of bytes.decode(). N)r(Úread)rrr$r%Úfps rÚ read_textr,1s)€ô �7˜H h°Ô 7¸2Ø�w‰w‹y÷ 8× 7Ò 7ús�)©2có‚—tj|«j«D�cgc]}|j‘Œc}Scc}w)zõReturn an iterable of entries in `package`. Note that not all entries are resources. Specifically, directories are not considered resources. Use `is_resource()` on each entry returned here to check if it is a resource or not. )r rÚiterdirÚname)rr s rÚcontentsr0@s4€ô#*§-¡-°Ó"8×"@Ñ"@Ô"BÓ CÑ"B˜$ˆD�I‹IÐ"BÑ CÐCùÒ Cs¦<r/c󄇗t|«Štˆfd„tj|«j «D««S)zYTrue if `name` is a resource inside `package`. Directories are *not* resources. c3ó`•K—|]%}|j‰k(xr|j«–—Œ'y­w)N)r/Úis_file)Ú.0Ú traversablers €rÚ zis_resource..Ps5øèø€ðá;ˆKð ×јHÑ$Ò>¨×)<Ñ)<Ó)>Ó>Ù;ùsƒ+.)rÚanyr rr.)rr/rs @rÚ is_resourcer8Js;ø€ô ˜dÓ#€HÜ óä"Ÿ=™=¨Ó1×9Ñ9Ô;óó ðrcój—tjtj|«t|«z «S)akA context manager providing a file path object to the resource. If the resource does not already exist on its own on the file system, a temporary file will be created. If the file was created, the file will be deleted upon exiting the context manager (no exception is raised if the file was deleted prior to the context manager exiting). )r Úas_filerrrs rr r Vs&€ô �?‰?œ7Ÿ=™=¨Ó1´NÀ8Ó4LÑLÓ MÐMr)zutf-8Ústrict)Ú functoolsrÚpathlibÚtypesÚwarningsÚtypingrrrrrrÚr Ú ModuleTyperÚPackageÚResourcerr Úbytesr#r(r,r0Úboolr8ÚPathr ©rrÚrIs\ðÛÛ ÛÛ ÛçI×Iåà �× Ñ  #Ð%Ñ &€Ø €ð ˜ð  ó ðJ˜ðJ¨HðJ¸óJð L˜ðL¨HðL¸óLðØñ Ø ð àð ðð ð ð ð  ó ðØñ Ø ð àð ðð ð ð ð  ó ðD�gðD (¨3¡-óDð ˜ð ¨ð °ó ð NØ ð Nàð Nð�G—L‘LÑ!ô Nr