ok
Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/ |
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.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 d a d Z e j e d 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 d a d Z e j e d d d � Z e j e e e � d � d Z d Z t e k rAd t GHd e GHe j d � n d a d Z e j e d 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 d a d Z e j e d d d � Z e j e e e � d � d Z d Z d Z t e e f k r;d t GHd e GHe j d � n d a d Z e j e d d d � Z e j e e e � d � d Z d Z d Z t e e f k r�d t GHd e GHe j d � n d a d Z e j e d d d � Z e j e e e � d � d Z d Z d Z t e e f k rAd t GHd e GHe j d � n d a d Z e j e d 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( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt startDocument s c C s t d a d S( Ns endDocument:( R ( R ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt endDocument s c C s t d | | f a d S( Ns startElement %s %s:( R ( R t tagt attrs( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt startElement s c C s t d | a d S( Ns endElement %s:( R ( R R ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt endElement s c C s t d | a d S( Ns characters: %s:( R ( R t data( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt characters s c C s t d | a d S( Ns warning: %s:( R ( R t msg( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt warning s c C s t d | a d S( Ns error: %s:( R ( R R ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt error$ s c C s t d | a d S( Ns fatalError: %s:( R ( R R ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt fatalError( s ( t __name__t __module__R R R R R R R R ( ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyR s s <foo><bar2/>i s test.xmlsK startDocument:startElement foo None:startElement bar2 None:endElement bar2:s Error got: %ss Expected: %ss <foo><bar2></bar2>s <foo><bar2>s; startDocument:startElement foo None:startElement bar2 None:s <foo><bar2 a="1" b='2' />s[ startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:s[ startDocument:startElement foo None:startElement bar2 {'b': '2', 'a': '1'}:endElement bar2:s <foo><bar2 a="1" b='2' >sK startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:sK startDocument:startElement foo None:startElement bar2 {'b': '2', 'a': '1'}:s <foo><bar2 a="1" b='2' ></bar2>s <foo><bar2 a="b='1' />s$ startDocument:startElement foo None:t OKs Memory leak %d bytes( ( t syst setup_testt libxml2t debugMemoryR R t handlert chunkt createPushParsert Nonet ctxtt parseChunkt lent referencet exitt reference1t reference2t cleanupParser( ( ( s@ /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/sync.pyt <module> s� !