HOME


Mini Shell 1.0
DIR: /snap/certbot/4482/lib/python3.12/site-packages/cryptography/__pycache__/
Upload File :
Current File : //snap/certbot/4482/lib/python3.12/site-packages/cryptography/__pycache__/utils.cpython-312.pyc
�

�S�gU��(�ddlmZddlZddlZddlZddlZddlZGd�de�ZeZ	eZ
eZeZeZ
eZdd�Zdd�Zddd�ZGd�d	e�ZGd
�d�ZGd�d
ej*�Z	d											dd�Zdd�ZGd�dej2�Zy)�)�annotationsNc��eZdZy)�CryptographyDeprecationWarningN��__name__�
__module__�__qualname__����/build/snapcraft-certbot-29b1212f749eeba2f1dece1adfe9a83a/parts/certbot/install/lib/python3.12/site-packages/cryptography/utils.pyrr���rrc�@�t|t�st|�d���y)Nz must be bytes)�
isinstance�bytes�	TypeError��name�values  r�_check_bytesrs#���e�U�#��4�&��/�0�0�$rc�R�	t|�y#t$rt|�d���wxYw)Nz must be bytes-like)�
memoryviewrrs  r�_check_bytesliker$s1��6��5����6��4�&� 3�4�5�5�6�s��&c�~�|dk(rtd��|j|xs|j�dzdzxsdd�S)Nrzlength argument can't be 0����big)�
ValueError�to_bytes�
bit_length)�integer�lengths  r�int_to_bytesr#+sJ��
��{��5�6�6�����6�7�%�%�'�!�+��1�6�Q���rc��eZdZy)�InterfaceNotImplementedNrr
rrr%r%3r
rr%c��eZdZdd�Zy)�_DeprecatedValuec�.�||_||_||_y�N)r�message�
warning_class)�selfrr*r+s    r�__init__z_DeprecatedValue.__init__8s����
����*��rN)r�objectr*�str)rrr	r-r
rrr'r'7s��+rr'c�@��eZdZd�fd�Zdd�Zdd�Zd	d�Zd
d�Z�xZS)�_ModuleWithDeprecationsc�V��t�|�|j�||jd<y�N�_module)�superr-r�__dict__)r,�module�	__class__s  �rr-z _ModuleWithDeprecations.__init__?s"���
������)�#)��
�
�i� rc���t|j|�}t|t�r8t	j
|j|jd��|j}|S�N�)�
stacklevel)	�getattrr4rr'�warnings�warnr*r+r�r,�attr�objs   r�__getattr__z#_ModuleWithDeprecations.__getattr__CsE���d�l�l�D�)���c�+�,��M�M�#�+�+�s�'8�'8�Q�G��)�)�C��
rc�2�t|j||�yr))�setattrr4)r,rArs   r�__setattr__z#_ModuleWithDeprecations.__setattr__Js������d�E�*rc���t|j|�}t|t�r,t	j
|j|jd��t|j|�yr:)	r=r4rr'r>r?r*r+�delattrr@s   r�__delattr__z#_ModuleWithDeprecations.__delattr__MsE���d�l�l�D�)���c�+�,��M�M�#�+�+�s�'8�'8�Q�G�����d�#rc�2�dgt|j��Sr3)�dirr4�r,s r�__dir__z_ModuleWithDeprecations.__dir__Ts���.�C����-�.�.r)r7ztypes.ModuleType)rAr/�returnr.)rAr/rr.rN�None)rAr/rNrO)rNztyping.Sequence[str])	rrr	r-rCrFrIrM�
__classcell__)r8s@rr1r1>s���*��+�$�/rr1c��tj|}t|t�st|�xtj|<}t	|||�}|�
t|||�|Sr))�sys�modulesrr1r'rE)r�module_namer*r+rr7�dvs       r�
deprecatedrVXsZ���[�[��
%�F��f�5�6�,C�F�,K�K����K� �6�	�%��-�	8�B������b�!�
�Irc�L����d����t��d���fd�}t|�S)N�_cached_c�X��t|���}|�ur|S�|�}t|�|�|Sr))r=rE)�instance�cache�result�cached_name�func�sentinels   ���r�innerzcached_property.<locals>.innerms8�����+�x�8���� ��L��h�����+�v�.��
r)rZr.)r.�property)r^r`r]r_s` @@r�cached_propertyrbis'����T�F�#�K��x�H���E�?�rc��eZdZdd�Zdd�Zy)�Enumc�j�d|jj�d|j�d|j�d�S)N�<�.z: �>)r8r�_name_�_value_rLs r�__repr__z
Enum.__repr__{s1���4�>�>�*�*�+�1�T�[�[�M��D�L�L�;K�1�M�Mrc�L�|jj�d|j��S)Nrg)r8rrirLs r�__str__zEnum.__str__~s"���.�.�)�)�*�!�D�K�K�=�9�9rN)rNr/)rrr	rkrmr
rrrdrdzs
��N�:rrd)rr/rrrNrOr))r!�intr"z
int | NonerNr)rr.rTr/r*r/r+z
type[Warning]rz
str | NonerNr')r^ztyping.CallablerNra)�
__future__r�enumrR�types�typingr>�UserWarningr�DeprecatedIn36�DeprecatedIn37�DeprecatedIn40�DeprecatedIn41�DeprecatedIn42�DeprecatedIn43rrr#�	Exceptionr%r'�
ModuleTyper1rVrbrdr
rr�<module>r|s���
#��
��
��
	�[�	�0��/��/��/��/��/��1�
6��	�i�	�+�+�/�e�.�.�/�>��������!�	�
���
�"�":�4�9�9�:r