Ë ø`fu* úãór—ddlmZddlmZddlmZGd„d«ZGd„d«Zdd „ZGd „d «Z d „Z y )é)Úsuppress)Ú TextIOWrapperé)Úabccó"—eZdZdZd„fd„Zd„Zy)ÚSpecLoaderAdapterz> Adapt a package spec to adapt the underlying loader. có—|jS©N)Úloader©Úspecs ú4/usr/lib/python3.12/importlib/resources/_adapters.pyÚzSpecLoaderAdapter. s€°$·+²+ócó,—||_||«|_yr )r r )Úselfr Úadapters rÚ__init__zSpecLoaderAdapter.__init__ s€ØˆŒ Ù˜d“mˆ� rcó.—t|j|«Sr )Úgetattrr ©rÚnames rÚ __getattr__zSpecLoaderAdapter.__getattr__s€Ü�t—y‘y $Ó'Ð'rN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr©rrrrs„ññ&>ó$ó(rrcó—eZdZdZd„Zd„Zy)ÚTraversableResourcesLoaderz9 Adapt a loader to provide TraversableResources. có—||_yr r ©rr s rrz#TraversableResourcesLoader.__init__ó €Øˆ� rcóH—t|j«j«Sr )ÚCompatibilityFilesr Ú_nativers rÚget_resource_readerz.TraversableResourcesLoader.get_resource_readers€Ü! $§)¡)Ó,×4Ñ4Ó6Ð6rN)rrrrrr'rrrr r s„ñòó7rr cóV—|dk(rt|g|¢­i|¤ŽS|dk(r|Std|›d�«‚)NÚrÚrbzInvalid mode value 'z"', only 'r' and 'rb' are supported)rÚ ValueError)ÚfileÚmodeÚargsÚkwargss rÚ _io_wrapperr0 s@€Ø ˆs‚{ܘTÐ3 DÒ3¨FÑ3Ð3Ø �ŠØˆ Ü Ð+¨D¨6Ð1SÐTÓ UÐUrcó¶—eZdZdZGd„dej «ZGd„dej «ZGd„dej «Zd„Z e d „«Z d „Z d „Z d „Zy )r%zj Adapter for an existing or non-existent resource reader to provide a compatibility .files(). cóD—eZdZdZd„Zd„Zd„ZeZd„Ze d„«Z d d„Z y) úCompatibilityFiles.SpecPathzk Path tied to a module spec. Can be read and exposes the resource reader children. có —||_||_yr )Ú_specÚ_reader)rr Úreaders rrz$CompatibilityFiles.SpecPath.__init__4s€ØˆDŒJØ!ˆD�Lrc󊇗‰js td«Stˆfd„‰jj«D««S)Nrc3ó^•K—|]$}tj‰j|«–—Œ&y­wr )r%Ú ChildPathr6)Ú.0Úpathrs €rÚ z6CompatibilityFiles.SpecPath.iterdir..;s*øèø€ðá3�Dô#×,Ñ,¨T¯\©\¸4×@Ù3ùsƒ*-)r6ÚiterÚcontents©rs`rÚiterdirz#CompatibilityFiles.SpecPath.iterdir8s:ø€Ø—<’<ܘB“x�Üóà ŸL™L×1Ñ1Ô3óóð rcó—y©NFrr@s rÚis_filez#CompatibilityFiles.SpecPath.is_file@ó€Ørcó„—|jstj|«Stj|j|«Sr )r6r%Ú OrphanPathr:©rÚothers rÚjoinpathz$CompatibilityFiles.SpecPath.joinpathEs1€Ø—<’<Ü)×4Ñ4°UÓ;Ð;Ü%×/Ñ/°· ± ¸eÓDÐ Drcó.—|jjSr )r5rr@s rrz CompatibilityFiles.SpecPath.nameJs€à—:‘:—?‘?Ð "rcóT—t|jjd«|g|¢­i|¤ŽSr )r0r6Ú open_resource©rr-r.r/s rÚopenz CompatibilityFiles.SpecPath.openNs)€Ü˜tŸ|™|×9Ñ9¸$Ó?ÀÐWÈÒWÐPVÑWÐ WrN©r)© rrrrrrArDÚis_dirrJÚpropertyrrOrrrÚSpecPathr3.s=„ñ ò  "ò ò ðˆò Eð ñ #ó ð #ô XrrTcóF—eZdZdZd„Zd„Zd„Zd„Zd„Ze d„«Z d d„Z y ) úCompatibilityFiles.ChildPathzw Path tied to a resource reader child. Can be read but doesn't expose any meaningful children. có —||_||_yr )r6Ú_name)rr7rs rrz%CompatibilityFiles.ChildPath.__init__Ws€Ø!ˆDŒL؈D�Jrcó—td«S©Nr©r>r@s rrAz$CompatibilityFiles.ChildPath.iterdir[ó €Ü˜“8ˆOrcóL—|jj|j«Sr )r6Ú is_resourcerr@s rrDz$CompatibilityFiles.ChildPath.is_file^s€Ø—<‘<×+Ñ+¨D¯I©IÓ6Ð 6rcó$—|j« Sr )rDr@s rrRz#CompatibilityFiles.ChildPath.is_diras€Ø—|‘|“~Ð%Ð %rcóB—tj|j|«Sr )r%rGrrHs rrJz%CompatibilityFiles.ChildPath.joinpathds€Ü%×0Ñ0°·±¸EÓBÐ Brcó—|jSr )rXr@s rrz!CompatibilityFiles.ChildPath.namegs €à—:‘:Ð rcóh—t|jj|j«|g|¢­i|¤ŽSr )r0r6rMrrNs rrOz!CompatibilityFiles.ChildPath.openks7€ÜØ— ‘ ×*Ñ*¨4¯9©9Ó5°tðØ>BòØFLñð rNrPrQrrrr:rVQs:„ñ ò  ò ò 7ò &ò Cð ñ ó ð ô rr:cóD—eZdZdZd„Zd„Zd„ZeZd„Ze d„«Z d d„Z y) úCompatibilityFiles.OrphanPathzŽ Orphan path, not tied to a module spec or resource reader. Can't be read and doesn't expose any meaningful children. cóD—t|«dkr td«‚||_y)Nrz/Need at least one path part to construct a path)Úlenr+Ú_path)rÚ path_partss rrz&CompatibilityFiles.OrphanPath.__init__vs!€Ü�:‹ Ò"Ü Ð!RÓSÐSØ#ˆD�Jrcó—td«SrZr[r@s rrAz%CompatibilityFiles.OrphanPath.iterdir{r\rcó—yrCrr@s rrDz%CompatibilityFiles.OrphanPath.is_file~rErcóD—tjg|j¢|‘­ŽSr )r%rGrgrHs rrJz&CompatibilityFiles.OrphanPath.joinpathƒs€Ü%×0Ñ0ÐD°$·*±*ÐD¸eÒDÐ Drcó —|jdS)Néÿÿÿÿ)rgr@s rrz"CompatibilityFiles.OrphanPath.name†s€à—:‘:˜b‘>Ð !rcó—td«‚)NzCan't open orphan path)ÚFileNotFoundErrorrNs rrOz"CompatibilityFiles.OrphanPath.openŠs€Ü#Ð$<Ó=Ð =rNrPrQrrrrGrdps<„ñ ò  $ò  ò ðˆò Eð ñ "ó ð "ô >rrGcó—||_yr r r"s rrzCompatibilityFiles.__init__�r#rcó¾—tt«5|jjj |jj «cddd«S#1swYyxYwr )rÚAttributeErrorr r r'rr@s rr6zCompatibilityFiles._reader�s6€ä ”nÕ %Ø—9‘9×#Ñ#×7Ñ7¸¿ ¹ ¿¹ÓG÷&× %Ò %ús �9AÁAcó:—|j}t|d«r|S|S)zB Return the native reader if it supports files(). Úfiles)r6Úhasattr)rr7s rr&zCompatibilityFiles._native•s!€ð—‘ˆÜ  ¨Ô1ˆvÐ;°tÐ;rcó.—t|j|«Sr )rr6)rÚattrs rrzCompatibilityFiles.__getattr__œs€Ü�t—|‘| TÓ*Ð*rcóV—tj|j|j«Sr )r%rTr r6r@s rrtzCompatibilityFiles.filesŸs€Ü!×*Ñ*¨4¯9©9°d·l±lÓCÐCrN)rrrrrÚ TraversablerTr:rGrrSr6r&rrtrrrr%r%(se„ñô !X�3—?‘?ô!XôF�C—O‘Oôô>>�S—_‘_ô>ò:ðñHóðHò<ò+óDrr%có6—t|jt«S)z` Construct a package spec with traversable compatibility on the spec/loader/reader. )rÚ__spec__r )Úpackages rÚ wrap_specr}£s€ô ˜W×-Ñ-Ô/IÓ JÐJrNrP) Ú contextlibrÚiorÚrrr r0r%r}rrrÚr�s=ðÝÝå÷ (ñ (÷ 7ñ 7óV÷xDñxDóvKr