ķ
öĀ\c           @   sv   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d e f d     YZ	 d e f d	     YZ
 d
 S(   sŪ   
    sphinx.transforms.references
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Docutils transforms used by Sphinx.

    :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
i˙˙˙˙(   t   nodes(   t   Substitutions(   t
   itervalues(   t   SphinxTransformt   SubstitutionDefinitionsRemoverc           B   s$   e  Z d  Z e j d Z d   Z RS(   s4   Remove ``substitution_definition node from doctrees.i   c         C   s4   x- |  j  j t j  D] } | j j |  q Wd  S(   N(   t   documentt   traverseR    t   substitution_definitiont   parentt   remove(   t   selft   node(    (    s;   lib/python2.7/site-packages/sphinx/transforms/references.pyt   apply   s    (   t   __name__t
   __module__t   __doc__R   t   default_priorityR   (    (    (    s;   lib/python2.7/site-packages/sphinx/transforms/references.pyR      s   t   SphinxDomainsc           B   s   e  Z d  Z d Z d   Z RS(   s7   Collect objects to Sphinx domains for cross references.iR  c         C   s@   x9 t  |  j j  D]% } | j |  j |  j j |  j  q Wd  S(   N(   R   t   envt   domainst   process_doct   docnameR   (   R
   t   domain(    (    s;   lib/python2.7/site-packages/sphinx/transforms/references.pyR   #   s    (   R   R   R   R   R   (    (    (    s;   lib/python2.7/site-packages/sphinx/transforms/references.pyR      s   N(   R   t   docutilsR    t   docutils.transforms.referencesR   t   sixR   t   sphinx.transformsR   R   R   (    (    (    s;   lib/python2.7/site-packages/sphinx/transforms/references.pyt   <module>
   s   