a
    %ñ»j`  ã                   @  s\   d dl mZ d dlmZ ddlmZmZ dddœdd	„Zd
ddœdd„Zdddœdd„Z	dS )é    )Úannotations)ÚAnyé   )ÚdecodeÚencodeÚstrÚbytes)ÚlabelÚreturnc                 C  s   t | ƒS )ac  Compatibility 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   ú1E:\soccer\ml_env\Lib\site-packages\idna/compat.pyÚToASCII   s    
r   zbytes | bytearrayc                 C  s   t | ƒS )aU  Compatibility 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.
    )r   r   r   r   r   Ú	ToUnicode   s    
r   r   ÚNone)Úsr
   c                 C  s   t dƒ‚dS )a4  Stub 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 protocolN)ÚNotImplementedError)r   r   r   r   Únameprep"   s    	r   N)
Ú
__future__r   Útypingr   Úcorer   r   r   r   r   r   r   r   r   Ú<module>   s
   