Your IP : 3.139.85.51


Current Path : /opt/alt/python313/lib64/python3.13/importlib/resources/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/resources/__pycache__/_functional.cpython-313.pyc

�

+}g[
��x�SrSSKrSSKJrJr \"5rSr\SS.SjrS	r	\SS.S
jr
SrSrS
r
SrSrg)z5Simplified function-based API for importlib.resources�N�)�files�as_filec�6�[X5RS5$)z8Open for binary reading the *resource* within *package*.�rb)�
_get_resource�open��anchor�
path_namess  �F/opt/alt/python313/lib64/python3.13/importlib/resources/_functional.py�open_binaryrs����,�1�1�$�7�7��strict��encoding�errorsc�N�[X15n[X5nURSXS9$)z6Open for text reading the *resource* within *package*.�rr)�_get_encoding_argrr	�rrrr�resources     r
�	open_textrs)�� ��6�H��V�0�H��=�=��x�=�?�?rc�4�[X5R5$)zARead and return contents of *resource* within *package* as bytes.)r�
read_bytesr
s  r
�read_binaryrs����,�7�7�9�9rc�L�[X15n[X5nURXS9$)z?Read and return contents of *resource* within *package* as str.r)rr�	read_textrs     r
rrs*�� ��6�H��V�0�H����x��?�?rc�*�[[X55$)z@Return the path to the *resource* as an actual file system path.)rrr
s  r
�pathr #s���=��4�5�5rc�4�[X5R5$)zbReturn ``True`` if there is a resource named *name* in the package,

Otherwise returns ``False``.
)r�is_filer
s  r
�is_resourcer#(s��
��,�4�4�6�6rc�v�[R"S[SS9 S[X5R	55$)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)�
stacklevelc3�8# �UHoRv� M g7f)N)�name)�.0rs  r
�	<genexpr>�contents.<locals>.<genexpr><s���V�*U�h�M�M�*U�s�)�warnings�warn�DeprecationWarningr�iterdirr
s  r
�contentsr/0s7��
�M�M�	/���	�W�-��*K�*S�*S�*U�V�Vrc�N�U[La[U5S:�a[S5egU$)Nrz5'encoding' argument required with multiple path nameszutf-8)�_MISSING�len�	TypeError)rrs  r
rr?s2��
�8���z�?�Q���G��
���Orc�N�Uc[S5e[U5R"U6$)Nz)anchor must be module or string, got None)r3r�joinpathr
s  r
rrNs(��
�~��C�D�D���=�!�!�:�.�.r)�__doc__r+�_commonrr�objectr1rrrrr r#r/rr�rr
�<module>r:sU��;��#��8��8�
-5�X�@�:�
-5�X�@�6�
7�W��/r

?>