관리-도구
편집 파일: _elementpath.cpython-38.pyc
U )�e�* � @ s� d dl Z e �d�Zddd�Zdd� Zdd � Zd d� Zdd � Zdd� Zdd� Z eeeeee d�Z i Zddd�Zddd�Z d dd�Zd!dd�Zd"dd�ZdS )#� NzY('[^']*'|"[^"]*"|::|//?|\.\.|\(\)|[/.*:\[\]\(\)@=])|((?:\{[^}]+\})?[^/\[\]\(\)@=\s]+)|\s+Tc c s� |r|� d �p|� d�nd }d}t�| �D ]�}|\}}|r�|d dkr�d|kr�|r�|�dd�\}} z"|slt�|d|| | f fV W q� tk r� td| ��Y q�X n"|r�|s�|d||f fV n|V d}q*|V |d k}q*d S ) N� Fr �{�:� z{%s}%sz!prefix %r not found in prefix map�@)�get�xpath_tokenizer_re�findall�split�KeyError�SyntaxError) �pattern� namespaces� with_prefixesZdefault_namespaceZparsing_attribute�token�ttype�tag�prefix�uri� r �A/opt/hc_python/lib64/python3.8/site-packages/lxml/_elementpath.py�xpath_tokenizerI s&