/usr/lib/python3/dist-packages/html5lib/treewalkers/__pycache__
Edit: /usr/lib/python3/dist-packages/html5lib/treewalkers/__pycache__/etree.cpython-310.pyc (3412B)
o
V=ñ^» ã @ sj d dl mZmZmZ d dlmZ d dlZd dlmZ ddl m
Z
ddlmZ e
d ¡Zd
d„ ZeeƒZdS )é )Úabsolute_importÚdivisionÚunicode_literals)ÚOrderedDictN)Ústring_typesé )Úbaseé )ÚmoduleFactoryFactoryz
{([^}]*)}(.*)c s, | }| d¡j‰ G ‡ fdd„dtjƒ}tƒ S )NÚasdc s4 e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd „ Zd
S )z#getETreeBuilder.
.TreeWalkeraË Given the particular ElementTree representation, this implementation,
to avoid using recursion, returns "nodes" as tuples with the following
content:
1. The current element
2. The index of the element relative to its parent
3. A stack of ancestor elements
4. A flag "text", "tail" or None to indicate if the current node is a
text node; either the text or tail of the current element (1)
c s@ t |tƒr|\}}}}|dv rtjt||ƒfS |}t|dƒs"| ¡ }|jdv r+tjfS |jdkr>tj |j
| d¡| d¡fS |jˆ krItj|j
fS t |jt
ƒsVJ t|jƒƒ‚t |j¡}|re| ¡ \}}nd }|j}tƒ }t|j ¡ ƒD ]\} }
t | ¡}|rŒ|
|| d¡| d¡f<