관리-도구
편집 파일: genshi.cpython-310.pyc
o ƚRe� � @ sL d dl mZmZmZ d dlmZmZ d dlmZmZm Z m Z mZ dd� ZdS )� )�absolute_import�division�unicode_literals)�QName�Attrs)�START�END�TEXT�COMMENT�DOCTYPEc c sT � g }| D ]�}|d }|dv r|� |d � n |r$td�|�dfV g }|dv rX|d r7d|d |d f }n|d }td d� |d �� D ��}tt|�|fdfV |dkrXd }|d krx|d rkd|d |d f }n|d }tt|�dfV q|dkr�t|d dfV q|dkr�t |d |d |d fdfV q q|r�td�|�dfV dS dS )z�Convert a tree to a genshi tree :arg walker: the treewalker to use to walk the tree to convert it :returns: generator of genshi nodes �type)� Characters�SpaceCharacters�data� )N���r )�StartTag�EmptyTag� namespace�{%s}%s�namec S s4 g | ]\}}t |d durd| n|d �|f�qS )r Nr � )r )�.0�attr�value� r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py� <listcomp> s (�zto_genshi.<locals>.<listcomp>r �EndTag�Comment�Doctype�publicId�systemIdN) �appendr �joinr �itemsr r r r r )�walker�text�tokenr r �attrsr r r � to_genshi sH � ����r* N) � __future__r r r Zgenshi.corer r r r r r r r* r r r r �<module> s