| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /tmp/calpy/cssselect2/__pycache__/ |
Upload File : |
�
ϥ=j,5 � �` � d dl mZ d dlmZ d dlmZ ddlmZmZ G d� d� � Z d� Z
d � Zd
S )� )�cached_property)�warn)�ascii_lower� )�compile_selector_list�split_whitespacec � � e Zd ZdZedd�� � Zedd�� � Zed d�� � Z dd�Zd� Z d � Z
d
� Zd� Ze
d� � � Ze
d
� � � Zd� Zd� Zd� Zd� Zd� Zd� Zed� � � Zd� Zd� Zd� Zed� � � Zed� � � Zed� � � Zed� � � Zed� � � Z ed� � � Z!ed� � � Z"dS )!�ElementWrappera� Wrapper of :class:`xml.etree.ElementTree.Element` for Selector matching.
This class should not be instanciated directly. :meth:`from_xml_root` or
:meth:`from_html_root` should be used for the root element of a document,
and other elements should be accessed (and wrappers generated) using
methods such as :meth:`iter_children` and :meth:`iter_subtree`.
:class:`ElementWrapper` objects compare equal if their underlying
:class:`xml.etree.ElementTree.Element` do.
Nc �2 � | � ||d�� � S )a. Wrap for selector matching the root of an XML or XHTML document.
:param root:
An ElementTree :class:`xml.etree.ElementTree.Element`
for the root element of a document.
If the given element is not the root,
selector matching will behave is if it were.
In other words, selectors will be not be `scoped`_
to the subtree rooted at that element.
:returns:
A new :class:`ElementWrapper`
.. _scoped: https://drafts.csswg.org/selectors-4/#scoping
F��in_html_document��
_from_root��cls�root�content_languages �B/tmp/claude-1015/pip-target-jmvfl800/lib/python/cssselect2/tree.py�
from_xml_rootzElementWrapper.from_xml_root s � �"