관리-도구
편집 파일: ElementInclude.cpython-311.opt-1.pyc
� c��f� � � � d dl Z ddlmZ d dlmZ dZedz Zedz ZdZ G d � d e � � Z G d� de � � Zdd �Zddefd�Z d� ZdS )� N� )�ElementTree)�urljoinz!{http://www.w3.org/2001/XInclude}�include�fallback� c � � e Zd ZdS )�FatalIncludeErrorN��__name__� __module__�__qualname__� � �?/opt/alt/python311/lib64/python3.11/xml/etree/ElementInclude.pyr r C � � � � � � ��Dr r c � � e Zd ZdS )�LimitedRecursiveIncludeErrorNr r r r r r G r r r c �4 � |dk rOt | d� � 5 }t j |� � � � � }d d d � � n# 1 swxY w Y nB|sd}t | d|�� � 5 }|� � � }d d d � � n# 1 swxY w Y |S )N�xml�rbzUTF-8�r)�encoding)�openr �parse�getroot�read)�hrefr r �file�datas r �default_loaderr! W s � ���~�~� �$�� � � 5���$�T�*�*�2�2�4�4�D� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5� 5���� 5� 5� 5� 5�� � ��H� �$��h� /� /� /� �4��9�9�;�;�D� � � � � � � � � � � ���� � � � ��Ks# �'A � A�A�,B � B�Bc �� � |�d}n|dk rt d|z � � �t | d� � r| � � � } |�t }t | |||t � � � � d S )N���r z;expected non-negative depth or None for 'max_depth', got %rr )� ValueError�hasattrr r! �_include�set)�elem�loader�base_url� max_depths r r r t sv � ���� � � �Q����V�Yb�b�c�c�c��t�Y��� ��|�|�~�~�� �~����T�6�8�Y����6�6�6�6�6r c �N � d}|t | � � k �r| | }|j t k �r�|� d� � }|rt ||� � }|� dd� � }|dk r�||v rt d|z � � �|dk rt d|z � � �|� |� � |||� � } | �t d|�d|��� � �t j | � � } t | |||d z |� � |� |� � |j r| j pd |j z | _ | | |<