관리-도구
편집 파일: base.cpython-311.pyc
� �Re4 � � � 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 ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/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&