ok
Direktori : /usr/lib64/python3.6/xml/dom/__pycache__/ |
Current File : //usr/lib64/python3.6/xml/dom/__pycache__/expatbuilder.cpython-36.opt-2.pyc |
3 \�� � @ s d dl mZmZmZ d dl mZmZmZ d dlmZ d dl m Z mZ d dlm Z ejZejZejZejjZejjZejjZejjZej� Zejdd�ejdd�ejdd �ejdd �ejdd�ejdd�ejdd �ejdd�ejdd�d� ZG dd� de�Zdd� Zdd� ZG dd� d�ZeeefZG dd� de�Z G dd� de�Z!G dd� de!�Z"G dd � d e!�Z#d!Z$d"e$ Z%G d#d$� d$e�Z&G d%d&� d&�Z'G d'd(� d(e'e�Z(G d)d*� d*e'e&�Z)G d+d,� d,e*�Z+G d-d.� d.e�Z,d:d0d1�Z-d;d2d3�Z.d<d4d5�Z/d=d6d7�Z0d8d9� Z1dS )>� )� xmlbuilder�minidom�Node)�EMPTY_NAMESPACE�EMPTY_PREFIX�XMLNS_NAMESPACE)�expat)� _append_child�_set_attribute_node)� NodeFilterNZcdata�enumeration�entity�entities�idZidrefZidrefsZnmtokenZnmtokens) ZCDATA�ENUMZENTITYZENTITIES�IDZIDREFZIDREFSZNMTOKENZNMTOKENSc @ sZ e Zd ZdZddd�Zdd� Zd d � Zdd� Zd d� Zdd� Z dd� Z dd� Zdd� ZdS )�ElementInfo� _attr_info�_model�tagNameNc C s || _ g | _|| _d S )N)r r r )�selfr �model� r �,/usr/lib64/python3.6/xml/dom/expatbuilder.py�__init__? s zElementInfo.__init__c C s | j | j| jfS )N)r r r )r r r r �__getstate__D s zElementInfo.__getstate__c C s |\| _ | _| _d S )N)r r r )r �stater r r �__setstate__G s zElementInfo.__setstate__c C sJ xB| j D ]8}|d |kr|d }|d dkr4td S t|d S qW tjS )N� � r �(r ���r! )r � _typeinfo_mapr �_no_type)r �aname�info�tr r r �getAttributeTypeJ s zElementInfo.getAttributeTypec C s t jS )N)r r# )r ZnamespaceURIZ localNamer r r �getAttributeTypeNST s zElementInfo.getAttributeTypeNSc C s, | j r$| j d }|tjjtjjfkS dS d S )Nr F)r r r Z XML_CTYPE_ANYZXML_CTYPE_MIXED)r �typer r r �isElementContentW s zElementInfo.isElementContentc C s | j r| j d tjjkS dS d S )Nr F)r r r ZXML_CTYPE_EMPTY)r r r r �isEmpty_ s zElementInfo.isEmptyc C s, x&| j D ]}|d |kr|d dkS qW dS )Nr r r Fr! )r )r r$ r% r r r �isIde s zElementInfo.isIdc C s | j ||f�S )N)r, )r ZeuriZenameZaurir$ r r r �isIdNSk s zElementInfo.isIdNS)r r r )N) �__name__� __module__�__qualname__� __slots__r r r r'