관리-도구
편집 파일: _elementpath.cpython-37.pyc
B C�;]�) � @ s� d dl mZ d dlZe�d�Zddd�Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zeeee e ed�Zi Z dd� Zddd�Zddd�Zd dd�Zd!dd�ZdS )"� )�absolute_importNzY('[^']*'|"[^"]*"|::|//?|\.\.|\(\)|[/.*:\[\]\(\)@=])|((?:\{[^}]+\})?[^/\[\]\(\)@=\s]+)|\s+c c s� |r|� d �p|� d�nd }d}x�t�| �D ]�}|\}}|r�|d dkr�d|kr�|�dd�\}}y"|sjt�|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,W d S ) N� Fr �{�:� z{%s}%sz!prefix %r not found in prefix map�@)�get�xpath_tokenizer_re�findall�split�KeyError�SyntaxError) �pattern� namespacesZdefault_namespaceZparsing_attribute�tokenZttype�tag�prefixZuri� r �D/opt/alt/python37/lib64/python3.7/site-packages/lxml/_elementpath.py�xpath_tokenizerJ s&