관리-도구
편집 파일: dom.cpython-35.pyc
��Re� � @ sY d d l m Z m Z m Z d d l m Z d d l m Z Gd d � d e j � Z d S)� )�absolute_import�division�unicode_literals)�Node� )�basec @ s@ e Z d Z d d � Z d d � Z d d � Z d d � Z d S) � TreeWalkerc C sX | j t j k r. t j | j | j | j f S| j t j t j f k rY t j | j f S| j t j k r� i } xg t | j j � � D]P } | j | � } | j r� | j | | j | j f <q� | j | d | j f <q� Wt j | j | j | | j � f S| j t j k rt j | j f S| j t j t j f k rDt j f St j | j f Sd S)N)ZnodeTyper ZDOCUMENT_TYPE_NODEr ZDOCTYPE�name�publicId�systemIdZ TEXT_NODEZCDATA_SECTION_NODEZTEXTZ nodeValueZELEMENT_NODE�list� attributes�keysZgetAttributeNodeZnamespaceURI�valueZ localNameZELEMENT�nodeNameZ hasChildNodesZCOMMENT_NODE�COMMENTZ DOCUMENT_NODEZDOCUMENT_FRAGMENT_NODEZDOCUMENT�UNKNOWN)�self�node�attrs�attr� r ��/builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/dom.py�getNodeDetails s$ zTreeWalker.getNodeDetailsc C s | j S)N)Z firstChild)r r r r r � getFirstChild$ s zTreeWalker.getFirstChildc C s | j S)N)ZnextSibling)r r r r r �getNextSibling'