관리-도구
편집 파일: compat.cpython-36.pyc
3 �Re�� � � @ s: d dl mZ d dlZd dlZd dlZyd dlZW n ek rH dZY nX ejd dk �r~d dlmZ e fZ eZd dl mZ d dlZd dlZddlmZ d dlmZmZmZmZmZ d d lmZmZmZm Z m!Z!m"Z"m#Z# d d� Zd dl$Z$d dl$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- e�r&d d l$m.Z. d dl/Z/d dl0Z0d dl1Z2d dl3m3Z3 d dl4Z4e5Z5d dl6m7Z8 d dl6m9Z: da;dd� Z<�nd dl=mZ e>fZ e>Zd dl=m?Z d dlZd dlZd dlZd dl@mZmZmZm<Z<mZmZmZmZm#Z# d dlAm&Z&mZm%Z%m Z m!Z!m)Z)m*Z*m+Z+m,Z,m-Z- e�r&d d lAm.Z. d dlBm(Z(m'Z'm"Z" d dlCjDZ/d dlAjEZ$d dlFjDZ0d dl2Z2d dlGm3Z3 d dlHjIZ4eJZ5d dl6m:Z: e8Z8yd dlmKZKmLZL W n8 ek �r� G dd� deM�ZLdddd�ZNdd� ZKY nX yd dl mOZP W n& ek �r G d d!� d!eQ�ZPY nX yd d"lmRZR W n, ek �rL ejSejTB dfd#d$�ZRY nX d d%lUmVZW eXeWd&��rleWZVn,d d'lUmYZZ G d(d)� d)eZ�ZYG d*d+� d+eW�ZVyd d,l[m\Z\ W n ek �r� d-d.� Z\Y nX yd dl]Z]W n" ek �r� dd/lm]Z] Y nX ye^Z^W n* e_k �r* d d0l`maZa d1d2� Z^Y nX yejbZbejcZcW nH edk �r� eje� �pZd3Zfefd4k�rld5Zgnd6Zgd7d8� Zbd9d:� ZcY nX yd d;lhmiZi W nH ek �r� d d<ljmkZkmlZl d dlZejmd=�Znd>d?� Zod@dA� ZiY nX yd dBlpmqZq W n" ek �r d dBlrmqZq Y nX ejddC� dek �r2e3� jsZsnd dElpmsZs yd dFltmuZu W nd ek �r� d dGltmvZv yd dHlwmxZy W n ek �r� dfdJdK�ZyY nX G dLdM� dMev�ZuY nX yd dNlzm{Z{ W nH ek �r yd dNl|m{Z{ W n ek �r dgdOdP�Z{Y nX Y nX yd dQltm}Z} W n� ek �r� yd dRl~mZ� W n" ek �rb d dRl�mZ� Y nX yd dSl�m�Z�m�Z�m�Z� W n ek �r� Y nX G dTdU� dUe��Z}Y nX yd dVl�m�Z�m�Z� W nv ek �r4 ejmdWej��Z�dXdY� Z�G dZd[� d[e��Z�dhd\d]�Z�G d^d_� d_e��Z�G d`da� dae��Z�G dbdc� dceQ�Z�Y nX dS )i� )�absolute_importN� )�StringIO)�FileType� )�shutil)�urlparse� urlunparse�urljoin�urlsplit� urlunsplit)�urlretrieve�quote�unquote�url2pathname�pathname2url�ContentTooShortError� splittypec C s t | t�r| jd�} t| �S )Nzutf-8)� isinstance�unicode�encode�_quote)�s� r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/distlib/compat.pyr s r ) �Request�urlopen�URLError� HTTPError�HTTPBasicAuthHandler�HTTPPasswordMgr�HTTPHandler�HTTPRedirectHandler�build_opener)�HTTPSHandler)� HTMLParser)�ifilter)�ifilterfalsec C s<