⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
xml
/
sax
/
__pycache__
/
View File Name :
saxutils.cpython-310.pyc
o }ò5hß/ ã @ sª d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z dd„ Z i fdd „Zi fd d„Zi fdd „Z dd„ ZG dd„ dejƒZG dd„ de jƒZddd„ZdS )znA library of useful helper classes to the SAX classes, for the convenience of application and driver writers. é Né )Úhandler)Ú xmlreaderc C s" | ¡ D ] \}}| ||¡} q| S )z2Replace substrings of a string using a dictionary.)ÚitemsÚreplace)ÚsÚdÚkeyÚvalue© r ú'/usr/lib/python3.10/xml/sax/saxutils.pyÚ__dict_replace s r c C s6 | dd¡} | dd¡} | dd¡} |rt| |ƒ} | S )züEscape &, <, and > in a string of data. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. ú&ú&ú>ú>ú<ú<©r r ©ÚdataÚentitiesr r r Úescape s r c C s2 | dd¡} | dd¡} |rt| |ƒ} | dd¡S )a Unescape &, <, and > in a string of data. You can unescape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. r r r r r r r r r r r Úunescape" s r c C sZ i |¥ddddœ¥}t | |ƒ} d| v r'd| v r!d| dd¡ } | S d | } | S d| } | S ) a“ Escape and quote an attribute value. Escape &, <, and > in a string of data, then quote it for use as an attribute value. The " character will be escaped as well, if necessary. You can escape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. z z z )Ú ú ú ú"ú'z"%s"z"z'%s')r r r r r r Ú quoteattr0 s ýÿr c s ˆ d u rdd l }|jS tˆ tjƒrˆ S tˆ tjtjfƒrˆ S tˆ tjƒr6G ‡ fdd„dƒ}|ƒ }dd„ |_ n!t ¡ }dd„ |_ˆ j|_z ˆ j |_ ˆ j|_W n tyV Y nw tj||ddd d S )Nr c s e Zd Z” jZ‡ fdd„ZdS )z _gettextwriter.
._wrapperc s t ˆ |ƒS ©N)Úgetattr©ÚselfÚname©Úoutr r Ú__getattr__Z ó z,_gettextwriter.
._wrapper.__getattr__N)Ú__name__Ú __module__Ú__qualname__Ú __class__r' r r% r r Ú_wrapperX s r- c S s d S r r r r r r Ú
] ó z _gettextwriter.
.
c S s dS )NTr r r r r r. b r/ Úxmlcharrefreplacer T)ÚencodingÚerrorsÚnewlineÚ write_through)ÚsysÚstdoutÚ isinstanceÚioÚ TextIOBaseÚcodecsÚStreamWriterÚStreamReaderWriterÚ RawIOBaseÚcloseÚBufferedIOBaseÚwritableÚwriteÚseekableÚtellÚAttributeErrorÚ TextIOWrapper)r&