관리-도구
편집 파일: util.cpython-312.pyc
� G��e� � �* � d dl Z d dlmZ d dlZd dlZd dlmZ d dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZ d dlZd dlZd dlZd dlZd dlZd dlZ d dlZd 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 jb e2� Z3 e jh d� Z5 e jh d� Z6 e jh d � Z7 e jh d � Z8 e jh d� Z9 e jh d� Z: e jh d � Z; e jh d� Z<d� Z=d� Z>d� Z?d� Z@d� ZAdid�ZBd� ZCd� ZDd� ZEej� d� � ZGej� d� � ZHej� djd�� ZI G d� deJ� ZKd� ZL G d� deJ� ZMd � ZN G d!� d"eJ� ZO e jh d#e j� � ZQd$� ZRdkd%�ZSd&� ZTd'� ZUd(� ZVd)� ZWd*� ZX e jh d+e j� � ZZ e jh d,� Z[dkd-�Z\ e jh d.� Z]d/� Z^d0� Z_d1� Z`d2Zad3� Zbd4� Zc G d5� d6eJ� Zd G d7� d8eJ� Ze G d9� d:eJ� Zfd;Zgdld<�Zhd=� Zid>Zj G d?� d@eJ� Zk e jh dA� Zl e jh dB� Zm e jh dC� ZndD� ZdE� Zoer6ddFlmpZqmrZrmsZs G dG� dHe$j� � Zt G dI� dJeq� Zp G dK� dLepe'� Zu G dM� dNe%j� � Zver G dO� dPe%j� � Zw G dQ� dRe%j� � ZxdS� Zy G dT� dUeJ� Zz G dV� dWez� Z{ G dX� dYez� Z| G dZ� d[e(� Z} G d\� d]eJ� Z~d^� Z G d_� d`eJ� Z�da� Z�db� Z�dc� Z�dddedfdg�Z�dh� Z�y# e$ r dZY ��Gw xY w# e$ r d dlZY ��>w xY w)m� 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 �@ ����� 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 j | � }|r*|j � d }| |j � d } || fS | st d� �| d }|dvrt d| z � �dj |d� }| dd } |g}| r�| d |k( rn�| d |k( r|j |� | dd } nZt j | � }|st d| z � �|j |j � d � | |j � d } | r��dj |� }t d|z � �|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�ss ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/distlib/util.py� marker_varz parse_marker.<locals>.marker_varA st � ����Y�'����X�X�Z��]�F�!�!�%�%�'�(�+�I�: �y� � �9 ��7�8�8��!��A���~�!�":�Y�"F�G�G����q�"�%�B�!�!�"� �I��C�E���Q�<�1�$���q�\�R�'��L�L��$� )�!�"� �I�$�*�*�9�5�A��)�*G�)�*S�T�T��L�L�����A��/� )�!�%�%�'�(� 3�I� � �G�G�E�N��!�";�a�"?�@�@��L�L��O��W�W�U�^�F�!�!�"� �,�,�.�I��y� � � c �t �� | rQ| d dk( rI �| dd j � � \ }} | d dk7 rt d| z � �| dd j � } || fS �| � \ }} | rRt j | � }|sn:|j � d }| |j � d } �| � \ }} |||d�}| r�R|}|| fS )Nr �(r �)�unterminated parenthesis: %s��op�lhs�rhs)r( r# � MARKER_OPr r! r"