HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/idna/__pycache__/compat.cpython-310.pyc
o

;jI�@sbddlmZmZddlmZmZdedefdd�Zdeee	fdefdd	�Z
d
eddfdd
�ZdS)�)�Any�Union�)�decode�encode�label�returncC�t|�S)acCompatibility shim for :rfc:`3490` ``ToASCII``.

    Delegates to :func:`idna.encode` (IDNA 2008). Provided to ease porting
    of code written against the legacy :mod:`encodings.idna` API; new code
    should call :func:`idna.encode` directly.

    :param label: The label or domain to encode.
    :returns: The encoded form as ASCII :class:`bytes`.
    )r�r�r�?/opt/saltstack/salt/lib/python3.10/site-packages/idna/compat.py�ToASCII�
r
cCr	)aUCompatibility shim for :rfc:`3490` ``ToUnicode``.

    Delegates to :func:`idna.decode` (IDNA 2008). Provided to ease porting
    of code written against the legacy :mod:`encodings.idna` API; new code
    should call :func:`idna.decode` directly.

    :param label: The label or domain to decode.
    :returns: The decoded Unicode form.
    )rr
rrr�	ToUnicoderr�sNcCstd��)a4Stub for :rfc:`3491` Nameprep, which is not used by IDNA 2008.

    IDNA 2008 (:rfc:`5891`) replaces Nameprep with the per-codepoint
    validity classes from :rfc:`5892`; this function exists only to
    return a clear error if legacy code attempts to call it.

    :raises NotImplementedError: Always.
    z,IDNA 2008 does not utilise nameprep protocol)�NotImplementedError)rrrr�nameprep s	r)�typingrr�corerr�str�bytesr
�	bytearrayrrrrrr�<module>s