ó
öÀ„\c           @   sˆ   d  Z  d d l m Z d d l m Z e rU d d l m Z m	 Z	 d d l
 m Z n  d e f d „  ƒ  YZ d e j f d	 „  ƒ  YZ d
 S(   sÒ   
    sphinx.writers.xml
    ~~~~~~~~~~~~~~~~~~

    Docutils-native XML and pseudo-XML writers.

    :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iÿÿÿÿ(   t   writers(   t   Writer(   t   Anyt   Tuple(   t   Buildert	   XMLWriterc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s,   t  j |  ƒ | |  _ |  j j ƒ  |  _ d  S(   N(   t   BaseXMLWritert   __init__t   buildert   get_translator_classt   translator_class(   t   selfR   (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR      s    	c         O   sS   |  j  j j j |  j j _ |  j j _ t |  j j _	 t |  j j _
 t j |  ƒ S(   N(   R   t   envt   configt
   xml_prettyt   documentt   settingst   newlinest   indentst   Truet   xml_declarationt   doctype_declarationR   t	   translate(   R   t   argst   kwargs(    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR      s    ((   t   __name__t
   __module__R   R   (    (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR      s   	t   PseudoXMLWriterc           B   s;   e  Z d Z d Z d	 Z d
 Z d „  Z d „  Z d „  Z	 RS(   t   pprintt   pformatt	   pseudoxmls   pseudoxml writerR    c         C   s   t  j j |  ƒ | |  _ d  S(   N(   R    R   R   R   (   R   R   (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR   2   s    c         C   s   |  j  j ƒ  |  _ d  S(   N(   R   R   t   output(   R   (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR   7   s    c         C   s   t  S(   s2   This writer supports all format-specific elements.(   R   (   R   t   format(    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyt   supports;   s    (   R   R   R   (   R    N(
   R   R   t	   supportedt   config_sectiont   config_section_dependenciest   NoneR   R   R   R!   (    (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyR   '   s   		N(   t   __doc__t   docutilsR    t   docutils.writers.docutils_xmlR   R   t   Falset   typingR   R   t   sphinx.buildersR   R   R   (    (    (    s1   lib/python2.7/site-packages/sphinx/writers/xml.pyt   <module>
   s   