|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /proc/self/root/opt/alt/python310/lib64/python3.10/encodings/__pycache__/ |
Upload File : |
o
;b�# � @ s� d dl Z d dlZd dlZd dlmZ e�d�ZdZdZdd� Z dd � Z
d
d� ZG dd
� d
ej�ZG dd� dej
�ZG dd� dej�ZG dd� deej�ZG dd� deej�Zdd� ZdS )� N)� ucd_3_2_0u [.。.。]s xn--zxn--c C s g }| D ]}t �|�rq|�t �|�� qd�|�} t�d| �} | D ]5}t �|�sQt �|�sQt � |�sQt �
|�sQt �|�sQt �|�sQt �
|�sQt �|�sQt �|�rWtd| ��q"dd� | D �}|D ]}|r~tdd� | D ��rrtd��|d rz|d
s~td��qa| S )N� ZNFKCzInvalid character %rc S s g | ]}t �|��qS � )�
stringprepZin_table_d1��.0�xr r �5/opt/alt/python310/lib64/python3.10/encodings/idna.py�
<listcomp>) s znameprep.<locals>.<listcomp>c s s � | ]}t �|�V qd S )N)r Zin_table_d2r r r r � <genexpr>2 s � znameprep.<locals>.<genexpr>zViolation of BIDI requirement 2r ���zViolation of BIDI requirement 3)r Zin_table_b1�appendZmap_table_b2�join�unicodedataZ normalizeZin_table_c12Zin_table_c22Zin_table_c3Zin_table_c4Zin_table_c5Zin_table_c6Zin_table_c7Zin_table_c8Zin_table_c9�UnicodeError�any)�labelZnewlabel�cZRandALr r r �nameprep sH
�������� ��r c C s� z| � d�} W n ty Y nw dt| � k rdk r#| S td��td��t| �} z| � d�} W n ty; Y nw dt| � k rIdk rN| S td��td��| �t�r[td��| � d�} t| } dt| � k rqdk rv| S td��td��)N�asciir �@ �label empty or too longzLabel starts with ACE prefix�punycode)�encoder �lenr �
startswith�sace_prefix�
ace_prefix)r r r r �ToASCII>