= d Z ddlmZ ddlmZ ddlmZ ddlmZm Z ddlm Z mZ G d dej Z d Z G d de Z G d d e Zd ZdS )a? SAX-based adapter to copy trees from/to the Python standard library. Use the `ElementTreeContentHandler` class to build an ElementTree from SAX events. Use the `ElementTreeProducer` class or the `saxify()` function to fire the SAX events of an ElementTree against a SAX ContentHandler. See https://lxml.de/sax.html )absolute_import)ContentHandler)etree)ElementTree SubElement)CommentProcessingInstructionc e Zd ZdZdS )SaxErrorzGeneral SAX error. N)__name__ __module____qualname____doc__ \/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/lxml/sax.pyr r s r r c x | d dk r+t | dd dd S d | fS )Nr { })tuplesplit)tags r _getNsTagr s= 1v}}SW]]3**+++Syr c e Zd ZdZddZd Z eeej Zd Zd Z d Z d Zd Zd Z ddZd Zd ZddZd Zd ZeZdS )ElementTreeContentHandlerz/Build an lxml ElementTree from SAX events. Nc t j | d | _ g | _ g | _ d | _ d d gi| _ i | _ |t j }|| _ d S N)r __init___root_root_siblings_element_stack_default_ns_ns_mapping _new_mappingsr Element_makeelement)selfmakeelements r r z"ElementTreeContentHandler.__init__&