
    Ki
                         S r SSKrSSKJrJr  SSKJr  \" 5       rS r	\SS.S	 jr
S
 r\SS.S jrS rS rS rS rS rg)z5Simplified function-based API for importlib.resources    N   )as_filefiles)TraversalErrorc                 6    [        X5      R                  S5      $ )z8Open for binary reading the *resource* within *package*.rb)_get_resourceopenanchor
path_namess     a/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/importlib_resources/_functional.pyopen_binaryr      s    ,11$77    strictencodingerrorsc                N    [        X15      n[        X5      nUR                  SXS9$ )z6Open for text reading the *resource* within *package*.rr   )_get_encoding_argr	   r
   r   r   r   r   resources        r   	open_textr      s)     6HV0H==x=??r   c                 4    [        X5      R                  5       $ )zARead and return contents of *resource* within *package* as bytes.)r	   
read_bytesr   s     r   read_binaryr      s    ,7799r   c                L    [        X15      n[        X5      nUR                  XS9$ )z?Read and return contents of *resource* within *package* as str.r   )r   r	   	read_textr   s        r   r   r      s*     6HV0Hx??r   c                 *    [        [        X5      5      $ )z@Return the path to the *resource* as an actual file system path.)r   r	   r   s     r   pathr!   #   s    =455r   c                 V     [        X5      R                  5       $ ! [         a     gf = f)zbReturn ``True`` if there is a resource named *name* in the package,

Otherwise returns ``False``.
F)r	   is_filer   r   s     r   is_resourcer$   (   s-    
V088:: s    
((c                 v    [         R                  " S[        SS9  S [        X5      R	                  5        5       $ )zReturn an iterable over the named resources within the package.

The iterable returns :class:`str` resources (e.g. files).
The iterable does not recurse into subdirectories.
zPimportlib.resources.contents is deprecated. Use files(anchor).iterdir() instead.r   )
stacklevelc              3   8   #    U  H  oR                   v   M     g 7f)N)name).0r   s     r   	<genexpr>contents.<locals>.<genexpr>?   s     V*UhMM*Us   )warningswarnDeprecationWarningr	   iterdirr   s     r   contentsr0   3   s7     MM	/	 W-*K*S*S*UVVr   c                 N    U[         L a  [        U 5      S:  a  [        S5      egU$ )Nr   z5'encoding' argument required with multiple path nameszutf-8)_MISSINGlen	TypeError)r   r   s     r   r   r   B   s2    
 8z?QG  Or   c                 N    U c  [        S5      e[        U 5      R                  " U6 $ )Nz)anchor must be module or string, got None)r4   r   joinpathr   s     r   r	   r	   Q   s(    ~CDD=!!:..r   )__doc__r,   _commonr   r   abcr   objectr2   r   r   r   r   r!   r$   r0   r   r	    r   r   <module>r<      sV    ;  # 88
 -5X @:
 -5X @6
W/r   