관리-도구
편집 파일: core.cpython-311.pyc
� P�Dg�2 � � � d dl mZ ddlZddlZddlZddlmZmZ d dlm Z dZ dZ ej d� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Zdedefd�Zdededefd�Zdedefd�Zdedefd�Zdeeef defd�Zdeeef dedefd�Zd3dededefd�Zdedefd �Zdedefd!�Zdeddfd"�Z ded#edefd$�Z!d3ded#ed%edefd&�Z"deeee#f ddfd'�Z$dedefd(�Z%deeee#f defd)�Z&d4d+ed,ed-edefd.�Z'd5deeee#f d/ed0ed,ed-edefd1�Z(d6deeee#f d/ed0ed,edef d2�Z)dS )7� )�idnadata� N)�Union�Optional)�intranges_contain� s xn--u [.。.。]c � � e Zd ZdZdS )� IDNAErrorz7 Base exception for all IDNA-encoding related problems N��__name__� __module__�__qualname__�__doc__� � �i/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/idna/core.pyr r s � � � � � �A�A��Dr r c � � e Zd ZdZdS )� IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr r r r r r s � � � � � �G�G��Dr r c � � e Zd ZdZdS )�InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr r r r r r s � � � � � �H�H��Dr r c � � e Zd ZdZdS )�InvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used Nr r r r r r s � � � � � �O�O��Dr r �cp�returnc � � t j t | � � � � }|dk r0t j t | � � � � st d� � �|S )Nr z Unknown character in unicodedata)�unicodedata� combining�chr�name� ValueError)r �vs r �_combining_classr"