Uname:Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 173.249.148.11  /  Your IP : 216.73.216.179
Web Server : Apache/2.4.68 (AlmaLinux)
System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64
User : devinter ( 1006)
PHP Version : 8.3.35
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/certbot/current/lib/python3.12/site-packages/idna/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/current/lib/python3.12/site-packages/idna/__pycache__/codec.cpython-312.pyc
�

��j���`�ddlZddlmZmZddlmZmZmZmZm	Z	m
Z
Gd�dej�ZGd�dej�Z
Gd	�d
ej�ZGd�deej �ZGd
�deej"�Zdedeej&fd�Zej*e�y)�N)�Any�Optional�)�	IDNAError�_unicode_dots_re�alabel�decode�encode�ulabelc	�P�eZdZdZddededeeeffd�Zddededeeeffd�Z	y)	�CodecafStateless IDNA 2008 codec.

    Implements the :class:`codecs.Codec` protocol so that the whole-domain
    encoder (:func:`idna.encode`) and decoder (:func:`idna.decode`) are
    accessible through the standard codec machinery as ``"idna2008"``.

    Only the ``"strict"`` error handler is supported; any other handler
    raises :exc:`~idna.IDNAError`.
    �data�errors�returnc�\�|dk7rtd|�d���|syt|�t|�fS)N�strict�Unsupported error handling "�"��r)rr
�len��selfrrs   �F/root/parts/certbot/install/lib/python3.12/site-packages/idna/codec.pyr
zCodec.encodes8���X���:�6�(�!�D�E�E����d�|�S��Y�&�&rc�\�|dk7rtd|�d���|syt|�t|�fS)Nrrr��r)rr	rrs   rr	zCodec.decodes8���X���:�6�(�!�D�E�E����d�|�S��Y�&�&rN)r)
�__name__�
__module__�__qualname__�__doc__�str�tuple�bytes�intr
r	�rrr
r
sL���'�3�'��'�5����;L�'�'�5�'�#�'�U�3��8�_�'rr
c
�2�eZdZdZdedededeeeffd�Z	y)�IncrementalEncodera�Incremental IDNA 2008 encoder.

    Buffers a partial trailing label across calls until either the next
    label separator is seen or ``final=True``, so that streamed input is
    encoded one whole label at a time. Any of the four Unicode label
    separators (``U+002E``, ``U+3002``, ``U+FF0E``, ``U+FF61``) ends a
    label; the result always uses ``U+002E`` as the separator.

    Only the ``"strict"`` error handler is supported.
    rr�finalrc�J�|dk7rtd|�d���|sytj|�}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]1}|jt	|��|r|d	z
}|t|�z
}�3dj
|�|z}	|t|�z
}|	|fS)
Nrrrrr����.rr)rr�split�appendrr�join)
rrrr)�labels�trailing_dot�result�size�label�result_bytess
          r�_buffer_encodez!IncrementalEncoder._buffer_encode1s����X���:�6�(�!�D�E�E���!�'�'��-������"�:�#���2�J���2�J��#'�L������	�E��M�M�&��-�(����	���C��J��D�		��y�y��(�<�7����L�!�!���T�!�!rN)
rrr r!r"�boolr#r$r%r6r&rrr(r(%s2��	�"�3�"��"�D�"�U�5�RU�:�EV�"rr(c
�2�eZdZdZdedededeeeffd�Z	y)�IncrementalDecoderaIncremental IDNA 2008 decoder.

    Buffers a partial trailing label across calls until either the next
    label separator is seen or ``final=True``, so that streamed input is
    decoded one whole label at a time.

    Only the ``"strict"`` error handler is supported.
    rrr)rc��|dk7rtd|�d���|syt|t�st|d�}tj|�}d}|r|dsd}|d=n	|s|d=|rd}g}d	}|D]1}|jt
|��|r|d
z
}|t|�z
}�3dj|�|z}	|t|�z
}|	|fS)Nrrrr�asciirr+�.rr)	r�
isinstancer"rr-r.rrr/)
rrrr)r0r1r2r3r4�
result_strs
          r�_buffer_decodez!IncrementalDecoder._buffer_decode\s����X���:�6�(�!�D�E�E����$��$��t�W�%�D�!�'�'��-������"�:�"���2�J���2�J��#&�L������	�E��M�M�&��-�(����	���C��J��D�		��X�X�f�%��4�
���L�!�!���D�!�!rN)
rrr r!rr"r7r#r%r?r&rrr9r9Rs1��� "�3� "�� "�D� "�U�3�PS�8�_� "rr9c��eZdZy)�StreamWriterN�rrr r&rrrArA���rrAc��eZdZy)�StreamReaderNrBr&rrrErE�rCrrE�namerc	��|dk7rytj|t�jt�jt
ttt��S)a�Codec search function registered with :mod:`codecs`.

    Returns a :class:`codecs.CodecInfo` for the ``"idna2008"`` codec name
    so that ``str.encode("idna2008")`` and ``bytes.decode("idna2008")``
    invoke the IDNA 2008 codec defined in this module.

    :param name: The codec name being looked up.
    :returns: A :class:`codecs.CodecInfo` instance if ``name`` is
        ``"idna2008"``, otherwise ``None``.
    �idna2008N)rFr
r	�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor
r
r	r(r9rArE)rFs r�search_functionrO�sC���z������
��w�~�~��w�~�~�-�-�!�!��r)rM�typingrr�corerrrr	r
rr
�BufferedIncrementalEncoderr(�BufferedIncrementalDecoderr9rArEr"rNrO�registerr&rr�<module>rUs���
� �M�M�'�F�L�L�'�<*"��:�:�*"�Z*"��:�:�*"�Z	�5�&�-�-�	�	�5�&�-�-�	��#��(�6�+;�+;�"<��0����� r

Youez - 2016 - github.com/yon3zu
LinuXploit