관리-도구
편집 파일: core.cpython-39.pyc
a ��Re2 � @ s0 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�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd7dd�Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd8d(d)�Zd*d+� Zd,d-� Z d.d/� Z!d9d1d2�Z"d:d3d4�Z#d;d5d6�Z$dS )<� )�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-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/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 c C s0 t �t| ��}|dkr,t �t| ��s,td��|S )Nr z Unknown character in unicodedata)�unicodedata� combining�chr�name� ValueError)�cp�vr r r �_combining_class s r c C s t t| �tj| �S )N)r �ordr �scripts)r �scriptr r r � _is_script( s r c C s | � d�S )N�punycode)�encode��sr r r � _punycode, s r# c C s d� | �S )NzU+{:04X})�formatr! r r r �_unot0 s r% c C s t | �dkrdS dS )N�? FT��len��labelr r r �valid_label_length5 s r+ c C s t | �|rdndkrdS dS )N� � FTr'