SILENT KILLERPanel

Current Path: > > usr > lib > python2.7 > site-packages > pip > _vendor > html5lib > treewalkers > >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers//

NameTypeSizeLast ModifiedActions
__init__.py File 5544 bytes April 21 2022 18:08:21.
__init__.pyc File 4729 bytes April 21 2022 18:08:34.
__init__.pyo File 4611 bytes April 21 2022 18:08:35.
base.py File 4939 bytes April 21 2022 18:08:21.
base.pyc File 6356 bytes April 21 2022 18:08:34.
base.pyo File 6356 bytes April 21 2022 18:08:34.
dom.py File 1413 bytes April 21 2022 18:08:21.
dom.pyc File 2235 bytes April 21 2022 18:08:34.
dom.pyo File 2235 bytes April 21 2022 18:08:34.
etree.py File 4684 bytes April 21 2022 18:08:21.
etree.pyc File 4564 bytes April 21 2022 18:08:34.
etree.pyo File 4431 bytes April 21 2022 18:08:35.
etree_lxml.py File 6309 bytes April 21 2022 18:08:21.
etree_lxml.pyc File 9221 bytes April 21 2022 18:08:34.
etree_lxml.pyo File 8738 bytes April 21 2022 18:08:35.
genshi.py File 2309 bytes April 21 2022 18:08:21.
genshi.pyc File 2438 bytes April 21 2022 18:08:34.
genshi.pyo File 2438 bytes April 21 2022 18:08:34.

Reading File: //usr/lib/python2.7/site-packages/pip/_vendor/html5lib/treewalkers///dom.py

from __future__ import absolute_import, division, unicode_literals

from xml.dom import Node

from . import base


class TreeWalker(base.NonRecursiveTreeWalker):
    def getNodeDetails(self, node):
        if node.nodeType == Node.DOCUMENT_TYPE_NODE:
            return base.DOCTYPE, node.name, node.publicId, node.systemId

        elif node.nodeType in (Node.TEXT_NODE, Node.CDATA_SECTION_NODE):
            return base.TEXT, node.nodeValue

        elif node.nodeType == Node.ELEMENT_NODE:
            attrs = {}
            for attr in list(node.attributes.keys()):
                attr = node.getAttributeNode(attr)
                if attr.namespaceURI:
                    attrs[(attr.namespaceURI, attr.localName)] = attr.value
                else:
                    attrs[(None, attr.name)] = attr.value
            return (base.ELEMENT, node.namespaceURI, node.nodeName,
                    attrs, node.hasChildNodes())

        elif node.nodeType == Node.COMMENT_NODE:
            return base.COMMENT, node.nodeValue

        elif node.nodeType in (Node.DOCUMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE):
            return (base.DOCUMENT,)

        else:
            return base.UNKNOWN, node.nodeType

    def getFirstChild(self, node):
        return node.firstChild

    def getNextSibling(self, node):
        return node.nextSibling

    def getParentNode(self, node):
        return node.parentNode

SILENT KILLER Tool