ok
Direktori : /proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/lxml/ |
Current File : //proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyc |
� �]Nc @ s" d Z d d l m Z d d l Z y$ d d l m Z d d l m Z Wn1 e k ry d d l m Z d d l m Z n Xy e Wn! e k r� d d l m Z n Xd Z e d Z e d Z d e j f d � � YZ d d � Z d d d � Z d � Z d d d � Z d d d d � Z d S( s Limited XInclude support for the ElementTree package. While lxml.etree has full support for XInclude (see `etree.ElementTree.xinclude()`), this module provides a simpler, pure Python, ElementTree compatible implementation that supports a simple form of custom URL resolvers. i����( t etreeN( t urljoin( t urlopen( t Sets! {http://www.w3.org/2001/XInclude}t includet fallbackt FatalIncludeErrorc B s e Z RS( ( t __name__t __module__( ( ( s9 /usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyR M s c C sk t | d � } | d k r3 t j | � j � } n* | j � } | sN d } n | j | � } | j � | S( Nt rbt xmls utf-8( t openR t parset getroott readt decodet close( t hrefR t encodingt filet data( ( s9 /usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyt default_loader] s c C s� | d k r'