관리-도구
편집 파일: base.cpython-36.pyc
3 �Re4 � @ s� d dl mZmZmZ d dlmZ ddlmZmZm Z ddddd d ddd g Z ejZej ZejZejZejZejZdZdje �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 ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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 �SerializeError)�type�datar )r �msgr r r �error&