관리-도구
편집 파일: util.cpython-311.pyc
� �Re� � � � d dl Z d dlmZ d dlZd dlZd dlmZ d dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZ d dlZn # e$ r dZY nw xY wd dlZd dlZd dlZd dlZd dlZ d dlZn# e$ r d dlZY nw xY wd 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 j1 e2� � Z3 e j4 d� � Z5 e j4 d� � Z6 e j4 d � � Z7 e j4 d � � Z8 e j4 d� � Z9 e j4 d� � Z: e j4 d � � Z; e j4 d� � Z<d� Z=d� Z>d� Z?d� Z@d� ZAdqd�ZBd� ZCd� ZDd� ZEejF d� � � ZGejF d� � � ZHejF drd�� � ZI G d� deJ� � ZKd� ZL G d� d eJ� � ZMd!� ZN G d"� d#eJ� � ZO e j4 d$e jP � � ZQd%� ZRdsd&�ZSd'� ZTd(� ZUd)� ZVd*� ZWd+� ZX e j4 d,e jY � � ZZ e j4 d-� � Z[dsd.�Z\ e j4 d/� � Z]d0� Z^d1� Z_d2� Z`d3Zad4� Zbd5� Zc G d6� d7eJ� � Zd G d8� d9eJ� � Ze G d:� d;eJ� � Zfd<Zgdtd>�Zhd?� Zid@Zj G dA� dBeJ� � Zk e j4 dC� � Zl e j4 dD� � Zm e j4 dE� � ZndF� ZdG� Zoer:ddHlmpZqmrZrmsZs G dI� dJe$jt � � Zt G dK� dLeq� � Zp G dM� dNepe'� � Zuejv ddO� ZwewdPk r( G dQ� dRe$jx � � Zxer G dS� dTe$jy � � Zy G dU� dVe%jz � � Zzer G dW� dXe%j{ � � Z{ G dY� dZe%j| � � Z|d[� Z} G d\� d]eJ� � Z~ G d^� d_e~� � Z G d`� dae~� � Z� G db� dce(� � Z� G dd� deeJ� � Z�df� Z� G dg� dheJ� � Z�di� Z�dj� Z�dk� Z�dldmdndo�Z�dp� Z�dS )u� 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 �F ����� d� ���fd���fd���fd�� �| � � 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 � � t � | � � }|r8|� � � d }| |� � � d � } �ns| st d� � �| d }|dvrt d| z � � �d� |d� � }| dd � } |g}| r�| d |k rn�| d |k r |� |� � | dd � } nwt � | � � }|st d| z � � �|� |� � � d � � | |� � � d � } | ��d� |� � }t d|z � � �|� |� � d� |� � }| dd � � � � } || 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�ss ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/distlib/util.py� marker_varz parse_marker.<locals>.marker_varA s� � ����Y�'�'��� /��X�X�Z�Z��]�F�!�!�%�%�'�'�(�(�+�I�I�� /��7�8�8�8��!��A���~�~�!�":�Y�"F�G�G�G����q�"�%�%�B�!�!�"�"� �I��C�E�� A��Q�<�1�$�$���q�\�R�'�'��L�L��$�$�$� )�!�"�"� �I�I�$�*�*�9�5�5�A�� U�)�*G�)�*S�T�T�T��L�L������A��/�/�/� )�!�%�%�'�'�(�(� 3�I� � A� �G�G�E�N�N��!�";�a�"?�@�@�@��L�L��O�O�O��W�W�U�^�^�F�!�!�"�"� �,�,�.�.�I��y� � � c �� �� | ro| d dk rc �| dd � � � � � � \ }} | d dk rt d| z � � �| dd � � � � } n{ �| � � \ }} | rit � | � � }|snL|� � � d }| |� � � d � } �| � � \ }} |||d�}| �i|}|| fS )Nr �(r �)�unterminated parenthesis: %s��op�lhs�rhs)r( r# � MARKER_OPr r! r"