관리-도구
편집 파일: etree.cpython-36.pyc
3 �Re$2 � @ s� d dl mZmZmZ d dlmZ d dlZd dlmZ ddlm Z ddlm Z dd lmZ dd lmZ ddl mZ ejd�Zddd�Zee�ZdS )� )�absolute_import�division�unicode_literals)� text_typeN)�copy� )�base� )� _ihatexml)� constants)� namespaces)�moduleFactoryFactoryz {([^}]*)}(.*)Fc s� ���j 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^ || _ || _� j| j||��| _|d kr:td | 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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/html5lib/treebuilders/etree.py�__init__ s z)getETreeBuilder.<locals>.Element.__init__c S s |d kr|}nd||f }|S )Nz{%s}%sr )r r r Z etree_tagr r r r % s z-getETreeBuilder.<locals>.Element._getETreeTagc S s || _ | j| 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 )N)r )r r r r �_getName0 s z)getETreeBuilder.<locals>.Element._getNamec S s || _ | j| j| j �| j_d S )N)r r r r r )r r r r r � _setNamespace5 s z.getETreeBuilder.<locals>.Element._setNamespacec S s | j S )N)r )r r r r � _getNamespace9 s z.getETreeBuilder.<locals>.Element._getNamespacec S s | j jS )N)r �attrib)r r r r �_getAttributes>