python (3.12.0)

(root)/
lib/
python3.12/
importlib/
resources/
__pycache__/
readers.cpython-312.opt-2.pyc

̑eddlZddlZddlZddlZddlZddlmZddlmZdZ	GddejZGdd	ejZGd
dejZGdd
ejZy)N)abc)onlycRttjj|SN)itercollectionsOrderedDictfromkeys)itemss O/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/importlib/resources/readers.pyremove_duplicatesrs''00788ceZdZdZdZdZy)
FileReaderc`tj|jj|_yr)pathlibPathpathparent)selfloaders  r
__init__zFileReader.__init__sLL-44	rcL	t|jj|Srstrrjoinpathrresources  r

resource_pathzFileReader.resource_path#	
499%%h/00rc|jSrrrs r
fileszFileReader.filesyyrN__name__
__module____qualname__rr r%rr
rrs51rrc0eZdZdZfdZdZdZxZS)	ZipReaderc|jd\}}}|jjdd|zdz|_|j|_y)N.\/)
rpartitionprefixreplacearchive)rrmodule_names     r
rzZipReader.__init__!sE&&s+
1dmm++D#6=C~~rcv	t||S#t$r}t|jdd}~wwxYwNr)super
open_resourceKeyErrorFileNotFoundErrorargs)rrexc	__class__s   r
r<zZipReader.open_resource&s;	17(22	1#CHHQK00	1s	838c	|jj|}|jxr|jSr)r%ris_fileexists)rrtargets   r
is_resourcezZipReader.is_resource,s7	&&t,~~3FMMO3rcVtj|j|jSr)zipfilerr5r3r$s r
r%zZipReader.files4s||DLL$++66r)r(r)r*rr<rFr%
__classcell__rAs@r
r-r- s&
147rr-cpeZdZ	dZdZdZdZdZdZfdZ	e
dZd	Ze
d
ZdZxZS)MultiplexedPathctttjt	||_|j
s
d}t
|td|j
Dstdy)Nz.MultiplexedPath must contain at least one pathc3<K|]}|jywr)is_dir.0rs  r
	<genexpr>z+MultiplexedPath.__init__.<locals>.<genexpr>Es9T4;;=9sz)MultiplexedPath only supports directories)	listmaprrr_pathsr>allNotADirectoryError)rpathsmessages   r
rzMultiplexedPath.__init__@sY3w||->u-EFG{{FG#G,,9T[[99$%PQQ:rcd|jD}tjd}tjt|||}t
|jd|DS)Nc3JK|]}|jD]}|ywr)iterdir)rQrchilds   r
rRz*MultiplexedPath.iterdir.<locals>.<genexpr>Is"Ndt||~NeENENs!#r8)keyc3&K|]	\}}|ywrr+)rQr8locss   r
rRz*MultiplexedPath.iterdir.<locals>.<genexpr>Ls!@:4$!@s)rUoperator
attrgetter	itertoolsgroupbysortedrT_follow)rchildrenby_namegroupss    r
r\zMultiplexedPath.iterdirHsPNdkkN%%f-""6(#@gN4<<!@!@AArct|dNz is not a filer>r$s r

read_byteszMultiplexedPath.read_bytesN4& 788rct|drkrlrr?kwargss   r
	read_textzMultiplexedPath.read_textQrnrcy)NTr+r$s r
rOzMultiplexedPath.is_dirTsrcy)NFr+r$s r
rCzMultiplexedPath.is_fileWsrc	t||S#tj$r|jdj|cYSwxYwr:)r;rrTraversalErrorrU)rdescendantsrAs  r
rzMultiplexedPath.joinpathZsJ	97#[11!!	9+4;;q>**K88	9s/AAc	tj|d\}}}	t|S#t$r%	||cYS#t$rt|cYcYSwxYwwxYw)N)rcteer
ValueErrorrWnext)clsrgsubdirsone_dirone_files     r
rfzMultiplexedPath._followbsf	&/]]8Q%?"(	&= 	&
&G}$%
&H~%
&	&s)
(	A9AA
AAAct|drkrlrps   r
openzMultiplexedPath.openurnrc4|jdjSr:)rUr8r$s r
r8zMultiplexedPath.namexs{{1~"""rcRdjd|jD}d|dS)Nz, c3(K|]
}d|dyw)'Nr+rPs  r
rRz+MultiplexedPath.__repr__.<locals>.<genexpr>}s>$AdV1+>szMultiplexedPath())joinrU)rrXs  r
__repr__zMultiplexedPath.__repr__|s)		>$++>>!%**r)r(r)r*rr\rmrrrOrCrclassmethodrfrpropertyr8rrIrJs@r
rLrL8s_RB999&&$9##+rrLceZdZdZdZdZy)NamespaceReaderc`dt|vrtdtt||_y)N
NamespacePathzInvalid path)rr{rLrSr)rnamespace_paths  r
rzNamespaceReader.__init__s+#n"55^,,#T.%9:	rcL	t|jj|Srrrs  r
r zNamespaceReader.resource_pathr!rc|jSrr#r$s r
r%zNamespaceReader.filesr&rNr'r+rr
rrs;
1rr)r	rcrrarHr
_itertoolsrrTraversableResourcesrr-TraversablerLrr+rr
<module>rsh9
))
 7((70F+cooF+Rc..r