관리-도구
편집 파일: base.cpython-310.pyc
o ƚRe4 � @ s� d dl mZmZmZ d dlmZ ddlmZmZm Z g d�Z ejZej ZejZejZejZejZdZd�e �Z G dd � d e�ZG d d� de�ZdS ) � )�absolute_import�division�unicode_literals)�Node� )� namespaces�voidElements�spaceCharacters) �DOCUMENT�DOCTYPE�TEXT�ELEMENT�COMMENT�ENTITY�UNKNOWN� TreeWalker�NonRecursiveTreeWalkerz<#UNKNOWN#>� c @ sl e Zd ZdZdd� Zdd� Zdd� Zdd d �Zdd� Zd d� Z dd� Z dd� Zddd�Zdd� Z dd� ZdS )r z}Walks a tree yielding tokens Tokens are dicts that all have a ``type`` field specifying the type of the token. c C s || _ dS )zCCreates a TreeWalker :arg tree: the tree to walk N)�tree)�selfr � 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/treewalkers/base.py�__init__ s zTreeWalker.__init__c C � t ��N��NotImplementedError)r r r r �__iter__# � zTreeWalker.__iter__c C � d|d�S )z�Generates an error token with the given message :arg msg: the error message :returns: SerializeError token �SerializeError��type�datar )r �msgr r r �error&