-í
é¶<c       s¸  d  k  Z  d k l Z d k l Z d f  d „  ƒ  YZ d „  Z e ƒ  Z e i d d ƒ Z	 d e	 _
 e e	 i
 d j ƒ d	 e	 _
 e e	 i
 d	 j ƒ d
 e	 _
 e e	 i
 d	 j ƒ d e	 _
 e e	 i
 d j ƒ d e	 _ e e	 i d j ƒ d	 e	 _ e e	 i d	 j ƒ d
 e	 _ e e	 i d	 j ƒ d e	 _ e e	 i d j ƒ d e	 _ e e	 i d j ƒ d	 e	 _ e e	 i d	 j ƒ d
 e	 _ e e	 i d	 j ƒ d e	 _ e e	 i d j ƒ d d d d d d d d d d d d d d g Z x' e D] Z e e	 e e e e ƒ ƒ qáWd Z d e	 _
 y e	 i e d	 ƒ WnV e i j
 oG d Ge	 i Ge i e	 i ƒ GHd Ge	 i GHd Ge	 i GHd Ge	 i GHn Xe i d d ƒ Z	 d	 e	 _
 x' e D] Z e e	 e e e e ƒ ƒ q¢Wy e	 i e d	 ƒ WnV e i j
 oG d Ge	 i Ge i e	 i ƒ GHd Ge	 i GHd Ge	 i GHd Ge	 i GHn Xe i d d ƒ Z	 d	 e	 _
 x' e D] Z e e	 e e e e ƒ ƒ qTWd  k Z e i e ƒ Z y e	 i e ƒ WnV e i j
 oG d Ge	 i Ge i e	 i ƒ GHd Ge	 i GHd Ge	 i GHd Ge	 i GHn XHd GHe i ƒ  e i d e ƒ e i d d ƒ d  GHy e i d d! ƒ Wn e j
 o Z d" GHe GHn Xd# GHy e i d d$ ƒ Wn e j
 o Z d% GHe GHn Xd& GHe i d d' ƒ d  S((   N(   s   expat(   s   sortdicts	   Outputterc      s   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc    s   d Gt  | ƒ Gt | ƒ GHd  S(   Ns   Start element:
	(   s   reprs   names   sortdicts   attrs(   s   selfs   names   attrs(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   StartElementHandler s    c    s   d Gt  | ƒ GHd  S(   Ns   End element:
	(   s   reprs   name(   s   selfs   name(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   EndElementHandler s    c    s/   | i ƒ  } | o d GHd Gt | ƒ GHn d  S(   Ns   Character data:s   	(   s   datas   strips   repr(   s   selfs   data(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   CharacterDataHandler s    c    s   d Gt  | ƒ Gt  | ƒ GHd  S(   Ns   PI:
	(   s   reprs   targets   data(   s   selfs   targets   data(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   ProcessingInstructionHandler s    c    s   d Gt  | ƒ Gt  | ƒ GHd  S(   Ns
   NS decl:
	(   s   reprs   prefixs   uri(   s   selfs   prefixs   uri(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   StartNamespaceDeclHandler s    c    s   d Gt  | ƒ GHd  S(   Ns   End of NS decl:
	(   s   reprs   prefix(   s   selfs   prefix(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   EndNamespaceDeclHandler s    c    s	   d GHd  S(   Ns   Start of CDATA section(    (   s   self(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   StartCdataSectionHandler! s    c    s	   d GHd  S(   Ns   End of CDATA section(    (   s   self(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   EndCdataSectionHandler$ s    c    s   d Gt  | ƒ GHd  S(   Ns
   Comment:
	(   s   reprs   text(   s   selfs   text(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   CommentHandler' s    c    s   | \ } } } } d G| GHd  S(   Ns   Notation declared:(   s   argss   names   bases   sysids   pubid(   s   selfs   argss   sysids   pubids   names   base(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   NotationDeclHandler* s    c    s"   | \ } } } } } d G| GHd  S(   Ns   Unparsed entity decl:
	(   s   argss
   entityNames   bases   systemIds   publicIds   notationName(   s   selfs   argss   bases   publicIds   notationNames   systemIds
   entityName(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   UnparsedEntityDeclHandler. s    c    s   d GHd Sd  S(   Ns   Not standalonei   (    (   s   selfs   userData(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   NotStandaloneHandler2 s    c    s'   | \ } } } } d G| d GHd Sd  S(   Ns   External entity ref:i   (   s   argss   contexts   bases   sysIds   pubId(   s   selfs   argss   sysIds   contexts   bases   pubId(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   ExternalEntityRefHandler6 s    c    s   d  S(   N(    (   s   selfs   userData(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   DefaultHandler; s    c    s   d  S(   N(    (   s   selfs   userData(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   DefaultHandlerExpand> s    (   s   __name__s
   __module__s   StartElementHandlers   EndElementHandlers   CharacterDataHandlers   ProcessingInstructionHandlers   StartNamespaceDeclHandlers   EndNamespaceDeclHandlers   StartCdataSectionHandlers   EndCdataSectionHandlers   CommentHandlers   NotationDeclHandlers   UnparsedEntityDeclHandlers   NotStandaloneHandlers   ExternalEntityRefHandlers   DefaultHandlers   DefaultHandlerExpand(    (    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys	   Outputter s   														c    s   |  o	 d GHn d GHd  S(   Ns   OK.s   Not OK.(   s   ok(   s   ok(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   confirmB s    	s   namespace_separators   !i    i   i   s   StartElementHandlers   EndElementHandlers   CharacterDataHandlers   ProcessingInstructionHandlers   UnparsedEntityDeclHandlers   NotationDeclHandlers   StartNamespaceDeclHandlers   EndNamespaceDeclHandlers   CommentHandlers   StartCdataSectionHandlers   EndCdataSectionHandlers   DefaultHandlers   DefaultHandlerExpands   ExternalEntityRefHandlersn  <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<?xml-stylesheet href="stylesheet.css"?>
<!-- comment data -->
<!DOCTYPE quotations SYSTEM "quotations.dtd" [
<!ELEMENT root ANY>
<!NOTATION notation SYSTEM "notation.jpeg">
<!ENTITY acirc "&#226;">
<!ENTITY external_entity SYSTEM "entity.file">
<!ENTITY unparsed_entity SYSTEM "entity.file" NDATA notation>
%unparsed_entity;
]>

<root attr1="value1" attr2="value2&#8000;">
<myns:subelement xmlns:myns="http://www.python.org/namespace">
     Contents of subelements
</myns:subelement>
<sub2><![CDATA[contents of CDATA section]]></sub2>
&external_entity;
</root>
s   ** Errors   ** Lines	   ** Columns   ** BytesF   Testing constructor for proper handling of namespace_separator values:s    s   Legal values tested o.k.i*   s   Caught expected TypeError:s#   Failed to catch expected TypeError.s   too longs   Caught expected ValueError:s$   Failed to catch expected ValueError.s    (    s   pyexpats   xml.parserss   expats   test_supports   sortdicts	   Outputters   confirms   outs   ParserCreates   parsers   returns_unicodes   ordered_attributess   specified_attributess   HANDLER_NAMESs   names   setattrs   getattrs   datas   Parses   errors	   ErrorCodes   ErrorStrings   ErrorLineNumbers   ErrorColumnNumbers   ErrorByteIndexs   StringIOs   files	   ParseFiles   Nones	   TypeErrors   es
   ValueError(   s	   Outputters   expats   es   names   confirms   StringIOs   datas   parsers   sortdicts   files   pyexpats   HANDLER_NAMESs   out(    (    s'   /usr/lib/python2.2/test/test_pyexpat.pys   ? s˜   	7		0 		 	 	



