Ë
‚Ö¦i‚ ã ór — d dl mZ d dlmZ ddlmZ G d„ d« Z G d„ d« Zdd „Z G d
„ d« Z d„ Z
y
)é )Úsuppress)Ú
TextIOWrapperé )Úabcc ó" — e Zd ZdZd„ fd„Zd„ Zy)ÚSpecLoaderAdapterz>
Adapt a package spec to adapt the underlying loader.
c ó — | j S ©N)Úloader©Úspecs ú6/usr/lib64/python3.12/importlib/resources/_adapters.pyÚzSpecLoaderAdapter. s € °$·+²+ó c ó, — || _ ||« | _ y r
)r
r )Úselfr
Úadapters r Ú__init__zSpecLoaderAdapter.__init__ s € ؈Œ Ù˜d“mˆ�r c ó. — t | j |« S r
)Úgetattrr
©r Únames r Ú__getattr__zSpecLoaderAdapter.__getattr__ s € Ü�t—y‘y $Ó'Ð'r N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r © r r r r s „ ññ &>ó $ó(r r c ó — e Zd ZdZd„ Zd„ Zy)ÚTraversableResourcesLoaderz9
Adapt a loader to provide TraversableResources.
c ó — || _ y r
r ©r r
s r r z#TraversableResourcesLoader.__init__ ó € Øˆ� r c óH — t | j « j « S r
)ÚCompatibilityFilesr
Ú_nativer s r Úget_resource_readerz.TraversableResourcesLoader.get_resource_reader s € Ü! $§)¡)Ó,×4Ñ4Ó6Ð6r N)r r r r r r' r r r r r s „ ñòó7r r c óV — |dk( rt | g|¢i |¤ŽS |dk( r| S t d|› 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ÐUr c ó¶ — e Zd ZdZ G d„ dej
« Z G d„ dej
« Z G d„ dej
« Zd„ Z e
d „ « Zd
„ Zd„ Z
d„ Zy
)r% zj
Adapter for an existing or non-existent resource reader
to provide a compatibility .files().
c óD — e Zd ZdZd„ Zd„ Zd„ ZeZd„ Ze d„ « Z
d d„Zy)
úCompatibilityFiles.SpecPathzk
Path tied to a module spec.
Can be read and exposes the resource reader children.
c ó — || _ || _ y r
)Ú_specÚ_reader)r r
Úreaders r r z$CompatibilityFiles.SpecPath.__init__4 s € ؈DŒJØ!ˆD�Lr c óŠ ‡ — ‰ j st d« S t ˆ fd„‰ j j « D « « S )Nr c 3 ó^ •K — | ]$ }t j ‰j |« –— Œ& y wr
)r% Ú ChildPathr6 )Ú.0Úpathr s €r Ú z6CompatibilityFiles.SpecPath.iterdir..; s* øè ø€ ð á3�Dô #×,Ñ,¨T¯\©\¸4×@Ù3ùs ƒ*-)r6 ÚiterÚcontents©r s `r Úiterdirz#CompatibilityFiles.SpecPath.iterdir8 s: ø€ Ø—<’<ܘB“x�Üó à ŸL™L×1Ñ1Ô3óó ð
r c ó — y©NFr r@ s r Úis_filez#CompatibilityFiles.SpecPath.is_file@ ó € Ør c ó„ — | j st j |« S t j | j |« S r
)r6 r% Ú
OrphanPathr: ©r Úothers r Újoinpathz$CompatibilityFiles.SpecPath.joinpathE s1 € Ø—<’<Ü)×4Ñ4°UÓ;Ð;Ü%×/Ñ/°·±¸eÓDÐDr c ó. — | j j S r
)r5 r r@ s r r z CompatibilityFiles.SpecPath.nameJ s € à—:‘:—?‘?Ð"r c óT — t | j j d « |g|¢i |¤ŽS r
)r0 r6 Ú
open_resource©r r- r. r/ s r Úopenz CompatibilityFiles.SpecPath.openN s) € ܘtŸ|™|×9Ñ9¸$Ó?ÀÐWÈÒWÐPVÑWÐWr N©r) ©r r r r r rA rD Úis_dirrJ Úpropertyr rO r r r ÚSpecPathr3 . s= „ ñ ò
"ò ò ð ˆò Eð
ñ #ó
ð #ô Xr rT c óF — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Ze d„ « Z
d
d„Zy )úCompatibilityFiles.ChildPathzw
Path tied to a resource reader child.
Can be read but doesn't expose any meaningful children.
c ó — || _ || _ y r
)r6 Ú_name)r r7 r s r r z%CompatibilityFiles.ChildPath.__init__W s € Ø!ˆDŒL؈D�Jr c ó — t d« S ©Nr ©r> r@ s r rA z$CompatibilityFiles.ChildPath.iterdir[ ó € Ü˜“8ˆOr c óL — | j j | j « S r
)r6 Úis_resourcer r@ s r rD z$CompatibilityFiles.ChildPath.is_file^ s € Ø—<‘<×+Ñ+¨D¯I©IÓ6Ð6r c ó$ — | j « S r
)rD r@ s r rR z#CompatibilityFiles.ChildPath.is_dira s € Ø—|‘|“~Ð%Ð%r c óB — t j | j |« S r
)r% rG r rH s r rJ z%CompatibilityFiles.ChildPath.joinpathd s € Ü%×0Ñ0°·±¸EÓBÐBr c ó — | j S r
)rX r@ s r r z!CompatibilityFiles.ChildPath.nameg s € à—:‘:Ðr c óh — t | j j | j « |g|¢i |¤ŽS r
)r0 r6 rM r rN s r rO z!CompatibilityFiles.ChildPath.openk s7 € ÜØ—‘×*Ñ*¨4¯9©9Ó5°tðØ>BòØFLñð
r NrP rQ r r r r: rV Q s: „ ñ ò
ò ò 7ò &ò Cð
ñ ó
ð ô r r: c óD — e Zd ZdZd„ Zd„ Zd„ ZeZd„ Ze d„ « Z
d d„Zy)
ú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 |« dk rt d« ‚|| _ y )Nr z/Need at least one path part to construct a path)Úlenr+ Ú_path)r Ú
path_partss r r z&CompatibilityFiles.OrphanPath.__init__v