Hacked By AnonymousFox

Current Path : /opt/alt/python36/lib64/python3.6/xml/sax/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/xml/sax/__pycache__/xmlreader.cpython-36.opt-2.pyc

3

��2a�1�@s�ddlmZddlmZmZGdd�d�ZGdd�de�ZGdd�d�ZGd	d
�d
�ZGdd�d�Z	Gd
d�de	�Z
dd�Zedkr�e�dS)�)�handler)�SAXNotSupportedException�SAXNotRecognizedExceptionc@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS) �	XMLReadercCs,tj�|_tj�|_tj�|_tj�|_dS)N)	rZContentHandler�
_cont_handlerZ
DTDHandler�_dtd_handlerZEntityResolver�_ent_handlerZErrorHandler�_err_handler)�self�r�./opt/alt/python36/lib64/python3.6/xmlreader.py�__init__s


zXMLReader.__init__cCstd��dS)Nz This method must be implemented!)�NotImplementedError)r
�sourcerrr�parseszXMLReader.parsecCs|jS)N)r)r
rrr�getContentHandler"szXMLReader.getContentHandlercCs
||_dS)N)r)r
rrrr�setContentHandler&szXMLReader.setContentHandlercCs|jS)N)r)r
rrr�
getDTDHandler*szXMLReader.getDTDHandlercCs
||_dS)N)r)r
rrrr�
setDTDHandler.szXMLReader.setDTDHandlercCs|jS)N)r)r
rrr�getEntityResolver2szXMLReader.getEntityResolvercCs
||_dS)N)r)r
Zresolverrrr�setEntityResolver6szXMLReader.setEntityResolvercCs|jS)N)r	)r
rrr�getErrorHandler:szXMLReader.getErrorHandlercCs
||_dS)N)r	)r
rrrr�setErrorHandler>szXMLReader.setErrorHandlercCstd��dS)NzLocale support not implemented)r)r
�localerrr�	setLocaleBszXMLReader.setLocalecCstd|��dS)NzFeature '%s' not recognized)r)r
�namerrr�
getFeatureKszXMLReader.getFeaturecCstd|��dS)NzFeature '%s' not recognized)r)r
r�staterrr�
setFeatureOszXMLReader.setFeaturecCstd|��dS)NzProperty '%s' not recognized)r)r
rrrr�getPropertySszXMLReader.getPropertycCstd|��dS)NzProperty '%s' not recognized)r)r
r�valuerrr�setPropertyWszXMLReader.setPropertyN)�__name__�
__module__�__qualname__r
rrrrrrrrrrrrrr!rrrrrs
	rc@s>eZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�ZdS)�IncrementalParser��cCs||_tj|�dS)N)�_bufsizerr
)r
�bufsizerrrr
oszIncrementalParser.__init__cCspddlm}|j|�}|j|�|j�}|dkr8|j�}|j|j�}x|rb|j|�|j|j�}qFW|j	�dS)Nr)�saxutils)
�r*Zprepare_input_source�
prepareParser�getCharacterStream�
getByteStream�readr(�feed�close)r
rr*�file�bufferrrrrss


zIncrementalParser.parsecCstd��dS)Nz This method must be implemented!)r)r
�datarrrr0�szIncrementalParser.feedcCstd��dS)Nz!prepareParser must be overridden!)r)r
rrrrr,�szIncrementalParser.prepareParsercCstd��dS)Nz This method must be implemented!)r)r
rrrr1�szIncrementalParser.closecCstd��dS)Nz This method must be implemented!)r)r
rrr�reset�szIncrementalParser.resetN�)r6)	r"r#r$r
rr0r,r1r5rrrrr%[s
	
r%c@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�LocatorcCsdS)Nr���r)r
rrr�getColumnNumber�szLocator.getColumnNumbercCsdS)Nrr8r)r
rrr�
getLineNumber�szLocator.getLineNumbercCsdS)Nr)r
rrr�getPublicId�szLocator.getPublicIdcCsdS)Nr)r
rrr�getSystemId�szLocator.getSystemIdN)r"r#r$r9r:r;r<rrrrr7�sr7c@sfeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)�InputSourceNcCs"||_d|_d|_d|_d|_dS)N)�_InputSource__system_id�_InputSource__public_id�_InputSource__encoding�_InputSource__bytefile�_InputSource__charfile)r
�	system_idrrrr
�s
zInputSource.__init__cCs
||_dS)N)r?)r
Z	public_idrrr�setPublicId�szInputSource.setPublicIdcCs|jS)N)r?)r
rrrr;�szInputSource.getPublicIdcCs
||_dS)N)r>)r
rCrrr�setSystemId�szInputSource.setSystemIdcCs|jS)N)r>)r
rrrr<�szInputSource.getSystemIdcCs
||_dS)N)r@)r
�encodingrrr�setEncoding�szInputSource.setEncodingcCs|jS)N)r@)r
rrr�getEncoding�szInputSource.getEncodingcCs
||_dS)N)rA)r
Zbytefilerrr�
setByteStream�szInputSource.setByteStreamcCs|jS)N)rA)r
rrrr.�szInputSource.getByteStreamcCs
||_dS)N)rB)r
Zcharfilerrr�setCharacterStreamszInputSource.setCharacterStreamcCs|jS)N)rB)r
rrrr-szInputSource.getCharacterStream)N)r"r#r$r
rDr;rEr<rGrHrIr.rJr-rrrrr=�s



r=c@s�eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zd$dd�Zdd�Zd d!�Zd"d#�ZdS)%�AttributesImplcCs
||_dS)N)�_attrs)r
�attrsrrrr
szAttributesImpl.__init__cCs
t|j�S)N)�lenrL)r
rrr�	getLengthszAttributesImpl.getLengthcCsdS)NZCDATAr)r
rrrr�getType!szAttributesImpl.getTypecCs
|j|S)N)rL)r
rrrr�getValue$szAttributesImpl.getValuecCs
|j|S)N)rL)r
rrrr�getValueByQName'szAttributesImpl.getValueByQNamecCs||jkrt|��|S)N)rL�KeyError)r
rrrr�getNameByQName*s
zAttributesImpl.getNameByQNamecCs||jkrt|��|S)N)rLrS)r
rrrr�getQNameByName/s
zAttributesImpl.getQNameByNamecCst|jj��S)N)�listrL�keys)r
rrr�getNames4szAttributesImpl.getNamescCst|jj��S)N)rVrLrW)r
rrr�	getQNames7szAttributesImpl.getQNamescCs
t|j�S)N)rNrL)r
rrr�__len__:szAttributesImpl.__len__cCs
|j|S)N)rL)r
rrrr�__getitem__=szAttributesImpl.__getitem__cCst|jj��S)N)rVrLrW)r
rrrrW@szAttributesImpl.keyscCs
||jkS)N)rL)r
rrrr�__contains__CszAttributesImpl.__contains__NcCs|jj||�S)N)rL�get)r
rZalternativerrrr]FszAttributesImpl.getcCs|j|j�S)N)�	__class__rL)r
rrr�copyIszAttributesImpl.copycCst|jj��S)N)rVrL�items)r
rrrr`LszAttributesImpl.itemscCst|jj��S)N)rVrL�values)r
rrrraOszAttributesImpl.values)N)r"r#r$r
rOrPrQrRrTrUrXrYrZr[rWr\r]r_r`rarrrrrKs"
rKc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�AttributesNSImplcCs||_||_dS)N)rL�_qnames)r
rMZqnamesrrrr
VszAttributesNSImpl.__init__cCs6x(|jj�D]\}}||kr|j|SqWt|��dS)N)rcr`rLrS)r
r�nsname�qnamerrrrR^sz AttributesNSImpl.getValueByQNamecCs0x"|jj�D]\}}||kr|SqWt|��dS)N)rcr`rS)r
rrdrerrrrTeszAttributesNSImpl.getNameByQNamecCs
|j|S)N)rc)r
rrrrrUlszAttributesNSImpl.getQNameByNamecCst|jj��S)N)rVrcra)r
rrrrYoszAttributesNSImpl.getQNamescCs|j|j|j�S)N)r^rLrc)r
rrrr_rszAttributesNSImpl.copyN)	r"r#r$r
rRrTrUrYr_rrrrrbTsrbcCst�t�t�dS)N)rr%r7rrrr�_testvsrf�__main__N)
r+r�_exceptionsrrrr%r7r=rKrbrfr"rrrr�<module>sPJY>"

Hacked By AnonymousFox1.0, Coded By AnonymousFox