관리-도구
편집 파일: util.cpython-36.pyc
3 �Re�� � @ s� d dl Z d dlmZ d dlZd dlZd dlmZ d dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZyd dlZW n ek r� dZY nX d dlZd dlZd dlZd dlZd dlZyd dlZW n ek r� d dlZY nX d dlZddlmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 e j1e2�Z3e j4d�Z5e j4d�Z6e j4d �Z7e j4d �Z8e j4d�Z9e j4d�Z:e j4d �Z;e j4d�Z<dd� Z=dd� Z>dd� Z?dd� Z@dd� ZAd�dd�ZBdd� ZCdd� ZDdd � ZEejFd!d"� �ZGejFd#d$� �ZHejFd�d&d'��ZIG d(d)� d)eJ�ZKd*d+� ZLG d,d-� d-eJ�ZMd.d/� ZNG d0d1� d1eJ�ZOe j4d2e jP�ZQd3d4� ZRd�d5d6�ZSd7d8� ZTd9d:� ZUd;d<� ZVd=d>� ZWd?d@� ZXe j4dAe jY�ZZe j4dB�Z[d�dCdD�Z\e j4dE�Z]dFdG� Z^dHdI� Z_dJdK� Z`dLZadMdN� ZbdOdP� ZcG dQdR� dReJ�ZdG dSdT� dTeJ�ZeG dUdV� dVeJ�Zfd�Zgd�d_d`�Zhdadb� Zid�ZjG didj� djeJ�Zke j4dk�Zle j4dl�Zme j4dm�Zndndo� Zdpdq� Zoe�r�ddrlmpZqmrZrmsZs G dsdt� dte$jt�ZtG dudv� dveq�ZpG dwdx� dxepe'�Zuejvddy� Zwewd�k�rG d{d|� d|e$jx�Zxe�rG d}d~� d~e$jy�ZyG dd�� d�e%jz�Zze�rBG d�d�� d�e%j{�Z{G d�d�� d�e%j|�Z|d�d�� Z}G d�d�� d�eJ�Z~G d�d�� d�e~�ZG d�d�� d�e~�Z�G d�d�� d�e(�Z�G d�d�� d�eJ�Z�d�d�� Z�dS )�� N)�deque)�iglob� )�DistlibException)�string_types� text_type�shutil� raw_input�StringIO�cache_from_source�urlopen�urljoin�httplib� xmlrpclib� splittype�HTTPHandler�BaseConfigurator�valid_ident� Container�configparser�URLError�ZipFile�fsdecode�unquote�urlparsez^([\w\.-]+)\s*z^([\w\.*+-]+)\s*z^(<=?|>=?|={2,3}|[~!]=)\s*z*^((<=?)|(>=?)|={2,3}|[~!]=|in|not\s+in)\s*z^or\b\s*z ^and\b\s*z(\S+)\s*z(([\s\w\.{}()*+#:;,/?!~`@$%^&=|<>\[\]-]+)c s6 dd� �� �fdd���fdd���fdd�� � | �S ) ae Parse a marker string and return a dictionary containing a marker expression. The dictionary will contain keys "op", "lhs" and "rhs" for non-terminals in the expression grammar, or strings. A string contained in quotes is to be interpreted as a literal string, and a string not contained in quotes is a variable (such as os_name). c S s2 t j| �}|r.|j� d }| |j� d � } � n�| s<td��n�| d }|dkrXtd| ��dj|d�}| dd � } |g}x�| r�| d |kr�P qx| d |kr�|j|� | dd � } qxtj| �}|s�td| ��|j|j� d � | |j� d � } qxW dj|�}td| ��|j|� dj|�}| dd � j � } || fS ) Nr zunexpected end of inputz'"zinvalid expression: %s� r zerror in string literal: %szunterminated string: %s) � IDENTIFIER�match�groups�end�SyntaxError�replace�append�STRING_CHUNK�join�lstrip)� remaining�m�result�q�oq�parts�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/util.py� marker_varA s: z parse_marker.<locals>.marker_varc s� | rR| d dkrR� | dd � j � �\}} | d dkr@td| ��| dd � j � } n^�| �\}} xL| r�tj| �}|stP |j� d }| |j� d � } �| �\}} |||d�}q`W |}|| fS )Nr �(r �)zunterminated parenthesis: %s)�op�lhs�rhs)r% r � MARKER_OPr r r )r&