관리-도구
편집 파일: etree.cpython-36.pyc
3 �Pf�1 � @ s� d dl mZmZmZ d dlmZ d dlZddlmZ ddlm Z ddlm Z dd l mZ dd lm Z ejd�Zdd d�Ze e�ZdS )� )�absolute_import�division�unicode_literals)� text_typeN� )�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 Z nameTuple�parent�_childNodes�_flags)�self�name� namespace)�ElementTree� �/usr/lib/python3.6/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 �_getName. 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 � _setNamespace3 s z.getETreeBuilder.<locals>.Element._setNamespacec S s | j S )N)r )r r r r � _getNamespace7 s z.getETreeBuilder.<locals>.Element._getNamespacec S s | j jS )N)r �attrib)r r r r �_getAttributes<