관리-도구
편집 파일: etree.cpython-310.pyc
o ƚRe$2 � @ s� d dl mZmZmZ d dlmZ d dlZd dlmZ ddlm Z ddlm Z dd lmZ dd lmZ ddl mZ e�d�Zddd�Zee�ZdS )� )�absolute_import�division�unicode_literals)� text_typeN)�copy� )�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 u rtd | j f| _n| j| j f| _d | _g | _g | _ d S )N�html) �_name� _namespace�Element�_getETreeTag�_elementr � nameTuple�parent�_childNodes�_flags)�self�name� namespace��ElementTree� ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/html5lib/treebuilders/etree.py�__init__ s � z)getETreeBuilder.<locals>.Element.__init__c S s |d u r|}|S d||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, � z)getETreeBuilder.<locals>.Element._setNamec S � | j S r! )r �r r r r �_getName0 � z)getETreeBuilder.<locals>.Element._getNamec S s || _ | �| j| j �| j_d S r! )r r r r r"