ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/lxml/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/lxml/__pycache__/ElementInclude.cpython-311.pyc |
� �܋fp! � � � d Z ddlmZ ddlmZ ddlmZ n# e$ r ddlmZ ddl mZ Y nw xY wdZ e dz Ze dz Ze dz Z d Z G d � dej � � Z G d� d e� � Zdd�Zdd�Zd� Zddefd�Zddedfd�ZdS )a Limited XInclude support for the ElementTree package. While lxml.etree has full support for XInclude (see `etree.ElementTree.xinclude()`), this module provides a simpler, pure Python, ElementTree compatible implementation that supports a simple form of custom URL resolvers. � )�etree)�urljoin)�urlopenz!{http://www.w3.org/2001/XInclude}�include�fallback�*� c � � e Zd ZdS )�FatalIncludeErrorN��__name__� __module__�__qualname__� � �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/lxml/ElementInclude.pyr r K � � � � � � ��Dr r c � � e Zd ZdS )�LimitedRecursiveIncludeErrorNr r r r r r O r r r Nc � � t | d� � }|dk r't j |� � � � � }n-|� � � }|sd}|� |� � }|� � � |S )N�rb�xml�utf-8)�openr �parse�getroot�read�decode�close)�hrefr �encoding�file�datas r �default_loaderr$ ` st � ���d���D���~�~��{�4� � �(�(�*�*����y�y�{�{��� ��H��{�{�8�$�$���J�J�L�L�L��Kr c �, � |dk r(t j | |� � � � � }ned| v rt | � � }nt | d� � }|� � � }|� � � |sd}|� |� � }|S )Nr z://r r )r r r r r r r r )r r r! �parserr# �fs r �_lxml_default_loaderr( q s� � ���~�~��{�4��(�(�0�0�2�2����D�=�=��� � �A�A��T�4� � �A��v�v�x�x�� ��� � � �� ��H��{�{�8�$�$���Kr c � � � d� fd� }|S )Nc � �� �| ||� � S �Nr )r r r! r&