관리-도구
편집 파일: base.cpython-38.opt-1.pyc
U ��.e4 � @ s� d dl mZmZmZ d dlmZ ddlmZmZm Z ddddd d ddd g Z ejZej ZejZejZejZejZdZd�e �Z G dd� de�ZG dd � d e�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 �I/usr/lib/python3.8/site-packages/pip/_vendor/html5lib/treewalkers/base.py�__init__ s zTreeWalker.__init__c C s t �d S �N��NotImplementedError)r r r r �__iter__# s zTreeWalker.__iter__c C s d|d�S )z�Generates an error token with the given message :arg msg: the error message :returns: SerializeError token ZSerializeError��type�datar )r �msgr r r �error&