관리-도구
편집 파일: ElementInclude.cpython-312.opt-1.pyc
� �Q�f( � � � d dl Z ddlmZ d dlmZ dZedz Zedz ZdZ G d � d e � Z G d� de � Zdd �Zddefd�Z d� Zy)� N� )�ElementTree)�urljoinz!{http://www.w3.org/2001/XInclude}�include�fallback� c � � e Zd Zy)�FatalIncludeErrorN��__name__� __module__�__qualname__� � �?/opt/alt/python312/lib64/python3.12/xml/etree/ElementInclude.pyr r C � � �r r c � � e Zd Zy)�LimitedRecursiveIncludeErrorNr r r r r r G r r r c � � |dk( r:t | d� 5 }t j |� j � }d d d � |S |sd}t | d|�� 5 }|j � }d d d � |S # 1 sw Y S xY w# 1 sw Y S xY w)N�xml�rbzUTF-8�r)�encoding)�openr �parse�getroot�read)�hrefr r �file�datas r �default_loaderr! W s � ���~� �$�� ���$�$�T�*�2�2�4�D� � �K� ��H� �$��h� /�4��9�9�;�D� 0��K� � �K�� 0��K�s �$A-�A:�-A7�:Bc � � |�d}n|dk rt d|z � �t | d� r| j � } |�t }t | |||t � � y )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 u sW � ���� � �Q���V�Yb�b�c�c��t�Y���|�|�~�� �~����T�6�8�Y���6r c � � d}|t | � k �r�| | }|j t k( �r�|j d� }|rt ||� }|j dd� }|dk( r�||v rt d|z � �|dk( rt d|z � �|j |� |||� } | �t d|�d|��� �t j | � } t | |||d z |� |j |� |j r"| j xs d |j z | _ | | |<