관리-도구
편집 파일: core.cpython-312.pyc
� G��e�2 � �r � 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�Zd1dededefd�Zdedefd�Zdedefd �Zdeddfd!�Z ded"edefd#�Z!d1ded"ed$edefd%�Z"deeee#f ddfd&�Z$dedefd'�Z%deeee#f defd(�Z&d2d)ed*ed+edefd,�Z'd3deeee#f d-ed.ed*ed+edefd/�Z(d4deeee#f d-ed.ed*edef d0�Z)y)5� )�idnadata� N)�Union�Optional)�intranges_contain� s xn--u [.。.。]c � � e Zd ZdZy)� IDNAErrorz7 Base exception for all IDNA-encoding related problems N��__name__� __module__�__qualname__�__doc__� � ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/idna/core.pyr r s � �A�r r c � � e Zd ZdZy)� IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr r r r r r s � �G�r r c � � e Zd ZdZy)�InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr r r r r r s � �H�r r c � � e Zd ZdZy)�InvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used Nr r r r r r s � �O�r r �cp�returnc � � t j t | � � }|dk( r)t j t | � � st d� �|S )Nr z Unknown character in unicodedata)�unicodedata� combining�chr�name� ValueError)r �vs r �_combining_classr"