Ñò
$8Zc           @   sd   d  d k  Z  d  d k Z d Z e d Z e d Z d e f d „  ƒ  YZ d d „ Z d d „ Z	 d S(	   iÿÿÿÿNs!   {http://www.w3.org/2001/XInclude}t   includet   fallbackt   FatalIncludeErrorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s.   /usr/lib/python2.6/xml/etree/ElementInclude.pyR   >   s   c         C   sf   t  |  ƒ } | d j o t i | ƒ i ƒ  } n' | i ƒ  } | o | i | ƒ } n | i ƒ  | S(   Nt   xml(   t   opent   ElementTreet   parset   getroott   readt   decodet   close(   t   hrefR   t   encodingt   filet   data(    (    s.   /usr/lib/python2.6/xml/etree/ElementInclude.pyt   default_loaderM   s    
c         C   s  | d  j o
 t } n d } xß| t |  ƒ j  oË|  | } | i t j oo| i d ƒ } | i d d ƒ } | d j o{ | | | ƒ } | d  j o t d | | f ƒ ‚ n t i | ƒ } | i o | i p d | i | _ n | |  | <qð| d j o¥ | | | | i d ƒ ƒ } | d  j o t d | | f ƒ ‚ n | o) |  | d	 } | i p d | | _ n& |  i	 p d | | i p d |  _	 |  | =q  qðt d
 | ƒ ‚ n5 | i t
 j o t d | i ƒ ‚ n t | | ƒ | d	 } q  Wd  S(   Ni    R   R   R   s   cannot load %r as %rt    t   textR   i   s)   unknown parse type in xi:include tag (%r)s0   xi:fallback tag must be child of xi:include (%r)(   t   NoneR   t   lent   tagt   XINCLUDE_INCLUDEt   getR   t   copyt   tailR   t   XINCLUDE_FALLBACKR    (   t   elemt   loadert   it   eR   R   t   nodeR   (    (    s.   /usr/lib/python2.6/xml/etree/ElementInclude.pyR    c   sH    
 

%(
   R   R   t   XINCLUDER   R   t   SyntaxErrorR   R   R   R    (    (    (    s.   /usr/lib/python2.6/xml/etree/ElementInclude.pyt   <module>3   s   

