|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/idna/__pycache__/ |
Upload File : |
3
G�Kd�2 � @ s d dl mZ ddlZddlZddlZddlmZmZ d dlm Z dZ
dZejd�Z
G d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�Zeed�dd�Zeeed�dd�Zeed�dd�Zeed�dd�Zeeef ed�dd�Zeeef eed�d d!�ZdBeeed#�d$d%�Zeed�d&d'�Zeed�d(d)�Zedd�d*d+�Z eeed,�d-d.�Z!dCeeeed/�d0d1�Z"eeee#f dd�d2d3�Z$eed�d4d5�Z%eeee#f ed�d6d7�Z&dDeeeed9�d:d;�Z'dEeeee#f eeeeed<�d=d>�Z(dFeeee#f eeeed?�d@dA�Z)dS )G� )�idnadata� N)�Union�Optional)�intranges_contain� s xn--u [.。.。]c @ s e Zd ZdZdS )� IDNAErrorz7 Base exception for all IDNA-encoding related problems N)�__name__�
__module__�__qualname__�__doc__� r
r
�)/tmp/pip-build-8nxjc3nm/idna/idna/core.pyr s r c @ s e Zd ZdZdS )�
IDNABidiErrorz= Exception when bidirectional requirements are not satisfied N)r r
r r r
r
r
r r s r c @ s e Zd ZdZdS )�InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used N)r r
r r r
r
r
r r s r c @ s e Zd ZdZdS )�InvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used N)r r
r r r
r
r
r r s r )�cp�returnc C s0 t jt| ��}|dkr,t jt| ��s,td��|S )Nr z Unknown character in unicodedata)�unicodedata� combining�chr�name�
ValueError)r �vr
r
r �_combining_class s
r )r �scriptr c C s t t| �tj| �S )N)r �ordr �scripts)r r r
r
r �
_is_script'