ok
Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/ |
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyc |
� [��ec @ s d d l Z d d l Z d d l Z e j d � d a d d d � � YZ e � Z e j e d d d � Z d Z e j e e e � d � d Z e j e e e � d � d Z d Z t e k r� d t GHd e GHe j d � n e j � e j d � d k r d GHn d e j d � GHd S( i����Ni t t callbackc B sP e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s t d a d S( Ns startDocument:( t log( t self( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt startDocument s c C s t d a d S( Ns endDocument:( R ( R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt endDocument s c C s t d | | f a d S( Ns startElement %s %s:( R ( R t tagt attrs( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt startElement s c C s t d | a d S( Ns endElement %s:( R ( R R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt endElement s c C s t d | a d S( Ns characters: %s:( R ( R t data( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt characters s c C s t d | a d S( Ns warning: %s:( R ( R t msg( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt warning s c C s t d | a d S( Ns error: %s:( R ( R R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt error$ s c C s t d | a d S( Ns fatalError: %s:( R ( R R ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt fatalError( s ( t __name__t __module__R R R R R R R R ( ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyR s s <fooi s test.xmls url='tst'>bi s ar</foo>sY startDocument:startElement foo {'url': 'tst'}:characters: bar:endElement foo:endDocument:s Error got: %ss Exprected: %st OKs Memory leak %d bytes( ( t syst setup_testt libxml2t debugMemoryR R t handlert createPushParsert ctxtt chunkt parseChunkt lent Nonet referencet exitt cleanupParser( ( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/pushSAX.pyt <module> s* !