관리-도구
편집 파일: core.cpython-311.pyc
� �Re2 � �T � 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� � Zd� Zd� Zd� Zd� Zd� Zd� Zd%d�Zd� Zd� Zd� Zd� Zd%d�Zd� Zd� Z d � Z!d&d"�Z"d'd#�Z#d(d$�Z$dS ))� )�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__� � ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/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 c � � t j t | � � � � }|dk r0t j t | � � � � st d� � �|S )Nr z Unknown character in unicodedata)�unicodedata� combining�chr�name� ValueError)�cp�vs r �_combining_classr! sO � ���c�"�g�g�&�&�A��A�v�v����B���(�(� A��?�@�@�@��Hr c �\ � t t | � � t j | � � S )N)r �ordr �scripts)r �scripts r � _is_scriptr&