Ë
    bQêj·
  ã                   ó€   — d Z ddlZddlmZmZ ddlmZ  e«       Zd„ Z	eddœd	„Z
d
„ Zeddœd„Zd„ Zd„ Zd„ Zd„ Zd„ Zy)z5Simplified function-based API for importlib.resourcesé    Né   )Úas_fileÚfiles)ÚTraversalErrorc                 ó8   — t        | |«      j                  d«      S )z8Open for binary reading the *resource* within *package*.Úrb)Ú_get_resourceÚopen©ÚanchorÚ
path_namess     úd/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/importlib_resources/_functional.pyÚopen_binaryr      s   € ä˜ Ó,×1Ñ1°$Ó7Ð7ó    Ústrict©ÚencodingÚerrorsc                óZ   — t        ||«      }t        | |«      }|j                  d||¬«      S )z6Open for text reading the *resource* within *package*.Úrr   )Ú_get_encoding_argr	   r
   ©r   r   r   r   Úresources        r   Ú	open_textr      s/   € ä  ¨XÓ6€HÜ˜V ZÓ0€HØ�=‰=˜ x¸ˆ=Ó?Ð?r   c                 ó6   — t        | |«      j                  «       S )zARead and return contents of *resource* within *package* as bytes.)r	   Ú
read_bytesr   s     r   Úread_binaryr      s   € ä˜ Ó,×7Ñ7Ó9Ð9r   c                óX   — t        ||«      }t        | |«      }|j                  ||¬«      S )z?Read and return contents of *resource* within *package* as str.r   )r   r	   Ú	read_textr   s        r   r   r      s0   € ä  ¨XÓ6€HÜ˜V ZÓ0€HØ×Ñ x¸ÐÓ?Ð?r   c                 ó,   — t        t        | |«      «      S )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   — 	 t        | |«      j                  «       S # t        $ r Y yw xY w)zjReturn ``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 ZÓ0×8Ñ8Ó:Ð:øÜò Ùðús   ‚ œ	(§(c                 ó|   — t        j                  dt        d¬«       d„ t        | |«      j	                  «       D «       S )zºReturn 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   ó4   K  — | ]  }|j                   –— Œ y ­w)N)Úname)Ú.0r   s     r   ú	<genexpr>zcontents.<locals>.<genexpr>?   s   è ø€ ÒV˜hˆH�M�MÑVùs   ‚)ÚwarningsÚwarnÚDeprecationWarningr	   Úiterdirr   s     r   Úcontentsr/   3   s9   € ô ‡M�Mð	/äØõ	ñ W¬-¸À
Ó*K×*SÑ*SÓ*UÔVÐVr   c                 óJ   — |t         u rt        | «      dkD  rt        d«      ‚y|S )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                 óL   — | €t        d«      ‚ t        | «      j                  |Ž S )Nz)anchor must be module or string, got None)r3   r   Újoinpathr   s     r   r	   r	   Q   s*   € Ø€~ÜÐCÓDÐDØ!Œ5�‹=×!Ñ! :Ð.Ð.r   )Ú__doc__r+   Ú_commonr   r   Úabcr   Úobjectr1   r   r   r   r   r!   r$   r/   r   r	   © r   r   ú<module>r;      sV   ðÙ ;ã ç #Ý á‹8€ò8ð
 -5¸Xô @ò:ð
 -5¸Xô @ò6ò
òWòó/r   