관리-도구
편집 파일: base.cpython-35.pyc
��Re4 � @ s� d d l m Z m Z m Z d d l m Z d d l m Z m Z m Z d d d d d d d d d g Z e j Z e j Z e j Z e j Z e j Z e j Z d Z d j e � Z Gd d � d e � Z Gd d � d e � Z d S)� )�absolute_import�division�unicode_literals)�Node� )� namespaces�voidElements�spaceCharacters�DOCUMENT�DOCTYPE�TEXT�ELEMENT�COMMENT�ENTITY�UNKNOWN� TreeWalker�NonRecursiveTreeWalkerz<#UNKNOWN#>� c @ s� e Z d Z d Z d d � Z d d � Z d d � Z d d d � Z d d � Z d d � Z d d � Z d d � Z d d d d � Z d d � Z d d � Z d S)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 | | _ d S)zCCreates a TreeWalker :arg tree: the tree to walk N)�tree)�selfr � r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/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 d | i S)z�Generates an error token with the given message :arg msg: the error message :returns: SerializeError token �type�SerializeError�datar )r �msgr r r �error&