Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
B;ˆWj6 ã @ sú d dl mZmZmZ d dlmZ ddlmZmZm Z dZ
eeƒdfeeee d dfgƒB ƒdfeeee d d fe d d
fgƒB ƒdfee d dfe d dfgƒdfee d dfe d d
fgƒdfdœZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZdS )é )Úabsolute_importÚdivisionÚunicode_literals)Ú text_typeé )ÚscopingElementsÚtableInsertModeElementsÚ
namespacesNFÚhtmlÚbuttonZolZulÚtableÚoptgroupÚoptionT)Nr Úlistr Zselectc @ s^ e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zdd
d„Zdd
„ Zdd„ Z dd„ Z
dd„ Zdd„ Zd S )ÚNodec C s( || _ d| _d| _i | _g | _g | _dS )a6 Node representing an item in the tree.
name - The tag name associated with the node
parent - The parent of the current node (or None for the document node)
value - The value of the current node (applies to text nodes and
comments
attributes - a dict holding name, value pairs for attributes of the node
childNodes - a list of child nodes of the current node. This must
include all elements but not necessarily other node types
_flags - A list of miscellaneous flags that can be set on the node
N)ÚnameÚparentÚvalueÚ
attributesÚ
childNodesZ_flags)Úselfr © r ú/usr/lib/python3.6/base.pyÚ__init__ s z
Node.__init__c C s: dj dd„ | jjƒ D ƒƒ}|r,d| j|f S d| j S d S )Nú c S s g | ]\}}d ||f ‘qS )z%s="%s"r )Ú.0r r r r r ú
+ s z Node.__str__..z<%s %s>z<%s>)Újoinr Úitemsr )r Z
attributesStrr r r Ú__str__* s
zNode.__str__c C s
d| j S )Nz<%s>)r )r r r r Ú__repr__3 s z
Node.__repr__c C s t ‚dS )z3Insert node as a child of the current node
N)ÚNotImplementedError)r Únoder r r ÚappendChild6 s zNode.appendChildNc C s t ‚dS )zŒInsert data as text in the current node, positioned before the
start of node insertBefore or to the end of the node's text.
N)r! )r ÚdataÚinsertBeforer r r Ú
insertText; s zNode.insertTextc C s t ‚dS )z¦Insert node as a child of the current node, before refNode in the
list of child nodes. Raises ValueError if refNode is not a child of
the current nodeN)r! )r r" ZrefNoder r r r% A s zNode.insertBeforec C s t ‚dS )z:Remove node from the children of the current node
N)r! )r r" r r r ÚremoveChildG s zNode.removeChildc C s$ x| j D ]}|j|ƒ qW g | _ dS )zMove all the children of the current node to newParent.
This is needed so that trees that don't store text as nodes move the
text in the correct way
N)r r# )r Z newParentZchildr r r ÚreparentChildrenL s zNode.reparentChildrenc C s t ‚dS )zŠReturn a shallow copy of the current node i.e. a node with the same
name and attributes but with no parent or child nodes
N)r! )r r r r Ú cloneNodeV s zNode.cloneNodec C s t ‚dS )zFReturn true if the node has children or text, false otherwise
N)r! )r r r r Ú
hasContent\ s zNode.hasContent)N)
Ú__name__Ú
__module__Ú__qualname__r r r r# r&