̆\ d Z dZddlT ddlmZmZ ddlmZ ddlmZmZ ddlm Z ddlm Z mZ dd lZej d d dk r edd [ dd lmZ eed s edd n# e$ r edd w xY wddlmZmZmZ ej Zej Z dd lZdd lZej Z[[n# e$ r d ZY nw xY w G d d Z G d dej Z G d dej ej Z!d Z"e#dk rdd l$Z% e" Z&e&' e%j( j ) e&* e%j( + e&, d d S d S )z] SAX driver for the pyexpat C module. This driver works with pyexpat.__version__ == '2.22'. z0.20 )*)feature_validationfeature_namespaces)feature_namespace_prefixes)feature_external_gesfeature_external_pes)feature_string_interning)property_xml_stringproperty_interning_dictN javazexpat not available in Java)expatParserCreatezexpat not supported) xmlreadersaxutilshandlerc | S N )os :/opt/alt/python311/lib64/python3.11/xml/sax/expatreader.py_mkproxyr ' s c e Zd ZdS ) _ClosedParserN)__name__ __module____qualname__r r r r r . s Dr r c 0 e Zd ZdZd Zd Zd Zd Zd ZdS )ExpatLocatorzLocator for use with the ExpatParser class. This uses a weak reference to the parser object to avoid creating a circular reference between the parser and the content handler. c . t | | _ d S r )r _refselfparsers r __init__zExpatLocator.__init__9 s V$$ r c : | j }|j d S |j j S r )r" _parserErrorColumnNumberr# s r getColumnNumberzExpatLocator.getColumnNumber<