etSSKJr SSKJr SSKJr "SS5r"SS5rSS jr"S S 5r S r g ))suppress) TextIOWrapper)abcc,\rSrSrSrS4SjrSrSrg)SpecLoaderAdapterz6 Adapt a package spec to adapt the underlying loader. cUR$N)loaderspecs C/opt/imh/python3.13/lib/python3.13/importlib/resources/_adapters.pySpecLoaderAdapter. s$++c*XlU"U5Ulgr )rr )selfradapters r__init__SpecLoaderAdapter.__init__ s dm rc.[URU5$r )getattrrrnames r __getattr__SpecLoaderAdapter.__getattr__styy$''r)r rN)__name__ __module__ __qualname____firstlineno____doc__rr__static_attributes__rrrrs&>$(rrc$\rSrSrSrSrSrSrg)TraversableResourcesLoaderz1 Adapt a loader to provide TraversableResources. cXlgr r rrs rr#TraversableResourcesLoader.__init__ rcH[UR5R5$r )CompatibilityFilesr_nativers rget_resource_reader.TraversableResourcesLoader.get_resource_readers!$)),4466rr N)rrr r!r"rr/r#r$rrr&r&s7rr&cZUS:Xa[U/UQ70UD6$US:XaU$[SUS35e)NrrbzInvalid mode value 'z"', only 'r' and 'rb' are supported)r ValueError)filemodeargskwargss r _io_wrapperr9 s@ s{T3D3F33  +D61ST UUrc\rSrSrSr"SS\R 5r"SS\R 5r"SS\R 5r S r \ S 5r S r S rS rSrg)r-(z^ Adapter for an existing or non-existent resource reader to provide a compatibility .files(). cN\rSrSrSrSrSrSr\rSr \ S5r S Sjr S r g ) CompatibilityFiles.SpecPath.zS Path tied to a module spec. Can be read and exposes the resource reader children. cXlX lgr )_spec_reader)rrreaders rr$CompatibilityFiles.SpecPath.__init__4s J!Lrc^TR(d [S5$[U4SjTRR555$)Nr$c3d># UH%n[RTRU5v M' g7fr )r- ChildPathrA).0pathrs r 6CompatibilityFiles.SpecPath.iterdir..;s,3D#,,T\\4@@3s-0)rAitercontentsrs`riterdir#CompatibilityFiles.SpecPath.iterdir8s:<<Bx LL113 rcgNFr$rMs ris_file#CompatibilityFiles.SpecPath.is_file@rcUR(d[RU5$[RURU5$r )rAr- OrphanPathrFrothers rjoinpath$CompatibilityFiles.SpecPath.joinpathEs1<<)44U;;%// eD Drc.URR$r )r@rrMs rr CompatibilityFiles.SpecPath.nameJs::?? "rcT[URRS5U/UQ70UD6$r )r9rA open_resourcerr6r7r8s ropen CompatibilityFiles.SpecPath.openNs)t||99$?WWPVW Wr)rAr@Nr2rrr r!r"rrNrRis_dirrYpropertyrr`r#r$rrSpecPathr=.s=  "   E  #  # XrrfcP\rSrSrSrSrSrSrSrSr \ S5r S S jr S r g ) CompatibilityFiles.ChildPathQz_ Path tied to a resource reader child. Can be read but doesn't expose any meaningful children. cXlX lgr )rA_name)rrBrs rr%CompatibilityFiles.ChildPath.__init__Ws !LJrc[S5$Nr$rKrMs rrN$CompatibilityFiles.ChildPath.iterdir[ 8OrcLURRUR5$r )rA is_resourcerrMs rrR$CompatibilityFiles.ChildPath.is_file^s<<++DII6 6rc,UR5(+$r )rRrMs rrd#CompatibilityFiles.ChildPath.is_diras||~% %rcB[RURU5$r )r-rVrrWs rrY%CompatibilityFiles.ChildPath.joinpathds%00EB BrcUR$r )rkrMs rr!CompatibilityFiles.ChildPath.namegs :: rch[URRUR5U/UQ70UD6$r )r9rAr^rr_s rr`!CompatibilityFiles.ChildPath.openks7 **4995t>BFL r)rkrANrbrcr$rrrFrhQs:    7 & C     rrFcN\rSrSrSrSrSrSr\rSr \ S5r S Sjr S r g ) CompatibilityFiles.OrphanPathpzv Orphan path, not tied to a module spec or resource reader. Can't be read and doesn't expose any meaningful children. cD[U5S:a [S5eXlg)Nrz/Need at least one path part to construct a path)lenr4_path)r path_partss rr&CompatibilityFiles.OrphanPath.__init__vs:" !RSS#Jrc[S5$rnrorMs rrN%CompatibilityFiles.OrphanPath.iterdir{rqrcgrQr$rMs rrR%CompatibilityFiles.OrphanPath.is_file~rTrcF[R"/URQUP76$r )r-rVrrWs rrY&CompatibilityFiles.OrphanPath.joinpaths%00D$**DeD Drc URS$)NrrMs rr"CompatibilityFiles.OrphanPath.names::b> !rc[S5e)NzCan't open orphan path)FileNotFoundErrorr_s rr`"CompatibilityFiles.OrphanPath.opens#$<= =rrNrbrcr$rrrVr~ps<  $    E  "  " >rrVcXlgr r r)s rrCompatibilityFiles.__init__r+rc[[5 URRR URR 5sSSS5 $!,(df  g=fr )rAttributeErrorrr r/rrMs rrACompatibilityFiles._readers6 n %99##77 G& % %s 9A A!cDURn[US5(aU$U$)z2 Return the native reader if it supports files(). files)rAhasattr)rrBs rr.CompatibilityFiles._natives$ 11v;t;rc.[URU5$r )rrA)rattrs rrCompatibilityFiles.__getattr__st||T**rcV[RURUR5$r )r-rfrrArMs rrCompatibilityFiles.filess!**499dllCCrr N)rrr r!r"r TraversablerfrFrVrrerAr.rrr#r$rrr-r-(se !X3??!XFCOO>>S__>:HH<+Drr-c6[UR[5$)zT Construct a package spec with traversable compatibility on the spec/loader/reader. )r__spec__r&)packages r wrap_specrs W--/I JJrNrb) contextlibriorrrr&r9r-rr$rrrs= ( ( 7 7VxDxDvKr