ó
öÀ„\c           @   s™   d  Z  d d l Z e r7 d d l m Z m Z m Z n  d e f d „  ƒ  YZ d e	 f d „  ƒ  YZ
 d e	 f d	 „  ƒ  YZ e Z d
 e f d „  ƒ  YZ d S(   sÐ   
    sphinx.deprecation
    ~~~~~~~~~~~~~~~~~~

    Sphinx deprecation classes and utilities.

    :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iÿÿÿÿN(   t   Anyt   Dictt   Typet   RemovedInSphinx20Warningc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR      s   t   RemovedInSphinx30Warningc           B   s   e  Z RS(    (   R   R   (    (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR      s   t   RemovedInSphinx40Warningc           B   s   e  Z RS(    (   R   R   (    (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR      s   t   DeprecatedDictc           B   sM   e  Z d  Z d „  Z d „  Z d d „ Z d „  Z d d „ Z d d „ Z	 RS(   s-   A deprecated dict which warns on each access.c         C   s,   | |  _  | |  _ t t |  ƒ j | ƒ d  S(   N(   t   messaget   warningt   superR   t   __init__(   t   selft   dataR	   R
   (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   &   s    		c         C   s9   t  j |  j |  j d d ƒt t |  ƒ j | | ƒ d  S(   Nt
   stackleveli   (   t   warningst   warnR	   R
   R   R   t   __setitem__(   R   t   keyt   value(    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   ,   s    c         C   s5   t  j |  j |  j d d ƒt t |  ƒ j | | ƒ S(   NR   i   (   R   R   R	   R
   R   R   t
   setdefault(   R   R   t   default(    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   1   s    c         C   s2   t  j |  j |  j d d ƒt t |  ƒ j | ƒ S(   NR   i   (   R   R   R	   R
   R   R   t   __getitem__(   R   R   (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   6   s    c         C   s5   t  j |  j |  j d d ƒt t |  ƒ j | | ƒ S(   NR   i   (   R   R   R	   R
   R   R   t   get(   R   R   R   (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   ;   s    c         C   s6   t  j |  j |  j d d ƒt t |  ƒ j | ƒ d  S(   NR   i   (   R   R   R	   R
   R   R   t   update(   R   t   other(    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   @   s    N(
   R   R   t   __doc__R   R   t   NoneR   R   R   R   (    (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyR   #   s   			(   R   R   t   Falset   typingR    R   R   t   DeprecationWarningR   t   PendingDeprecationWarningR   R   t   RemovedInNextVersionWarningt   dictR   (    (    (    s1   lib/python2.7/site-packages/sphinx/deprecation.pyt   <module>
   s   