관리-도구
편집 파일: core.cpython-38.pyc
U ʗRe�1 � @ s d dl mZ ddlZddlZddlZddlmZmZ d dlm Z dZ dZe�d�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 ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/idna/core.pyr s r c @ s e Zd ZdZdS )� IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr r r r r r s r c @ s e Zd ZdZdS )�InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr 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 Nr r r r r r s r )�cp�returnc C s0 t �t| ��}|dkr,t �t| ��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'