관리-도구
편집 파일: etree.cpython-38.opt-1.pyc
U ��.e�1 � @ s� d dl mZmZmZ d dlmZ d dlZddlmZ ddlm Z ddlm Z dd l mZ dd lm Z e�d�Zdd d�Ze e�ZdS )� )�absolute_import�division�unicode_literals)� text_typeN� )�base� )� _ihatexml)� constants)� namespaces)�moduleFactoryFactoryz {([^}]*)}(.*)Fc s� ���� d�j�G �fdd�dtj��G �fdd�d��� G �fdd�d���G �fdd �d ���G �fd d�d����fdd �� ��fdd�}G � ������� fdd�dtj�}t� S )NZasdc s� e Zd Zd$� fdd� Zdd� Zdd� Zdd � Zeee�Zd d� Z dd � Z ee e �Zdd� Zdd� Z eee �Zdd� Zdd� Zeee�Zdd� Zdd� Zdd� Zdd� Zd%dd�Zd d!� Zd"d#� ZdS )&z getETreeBuilder.<locals>.ElementNc s^ || _ || _� �| �||��| _|d kr:td | j f| _n| j| j f| _d | _g | _g | _ d S )N�html) �_name� _namespace�Element�_getETreeTag�_elementr Z nameTuple�parent�_childNodes�_flags)�self�name� namespace��ElementTree� �K/usr/lib/python3.8/site-packages/pip/_vendor/html5lib/treebuilders/etree.py�__init__ s �z)getETreeBuilder.<locals>.Element.__init__c S s |d kr|}nd||f }|S )N�{%s}%sr )r r r Z etree_tagr r r r # s z-getETreeBuilder.<locals>.Element._getETreeTagc S s || _ | �| j | j�| j_d S �N)r r r r �tag)r r r r r �_setName* s z)getETreeBuilder.<locals>.Element._setNamec S s | j S r )r �r r r r �_getName. s z)getETreeBuilder.<locals>.Element._getNamec S s || _ | �| j| j �| j_d S r )r r r r r )r r r r r � _setNamespace3 s z.getETreeBuilder.<locals>.Element._setNamespacec S s | j S r )r r"