관리-도구
편집 파일: html5parser.cpython-36.pyc
3 �Pf�� � @ sF d dl mZmZmZ d dlmZmZmZ d dlZyd dl m Z W n ek r` d dlm Z Y nX ddl mZ ddl mZ ddl mZ dd lmZ dd l mZ ddlmZmZmZmZmZmZmZmZmZmZmZm Z!m"Z"m#Z#m$Z$m%Z% d!dd�Z&d"dd�Z'dd� Z(G dd� de)�Z*ej+dd� �Z,dd� Z-d#dd�Z.G dd � d e/�Z0dS )$� )�absolute_import�division�unicode_literals)�with_metaclass�viewkeys�PY3N)�OrderedDict� )�_inputstream)� _tokenizer)�treebuilders)�Marker)�_utils)�spaceCharacters�asciiUpper2Lower�specialElements�headingElements� cdataElements�rcdataElements� tokenTypes� tagTokenTypes� namespaces�htmlIntegrationPointElements�"mathmlTextIntegrationPointElements�adjustForeignAttributes�adjustMathMLAttributes�adjustSVGAttributes�E�ReparseException�etreeTc K s$ t j|�}t||d�}|j| f|�S )z.Parse a string or file-like object into a tree)�namespaceHTMLElements)r �getTreeBuilder� HTMLParser�parse)�doc�treebuilderr �kwargs�tb�p� r) �!/usr/lib/python3.6/html5parser.pyr# s r# �divc K s, t j|�}t||d�}|j| fd|i|��S )N)r � container)r r! r"