ó
i4Vdc           @@  s    d  d l  m Z d  d l Z d  d l Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ e Z d e	 f d „  ƒ  YZ
 d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d S(   i    (   t   absolute_importNt   RemovedInDjango20Warningc           B@  s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR      s   t   RemovedInDjango110Warningc           B@  s   e  Z RS(    (   R   R   (    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR      s   t   warn_about_renamed_methodc           B@  s   e  Z d  „  Z d „  Z RS(   c         C@  s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t
   class_namet   old_method_namet   new_method_namet   deprecation_warning(   t   selfR   R   R   R	   (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyt   __init__   s    			c         @  s   ‡  ‡ f d †  } | S(   Nc          @  s9   t  j d ˆ j ˆ j ˆ j f ˆ j d ƒ ˆ  |  | Ž  S(   Ns(   `%s.%s` is deprecated, use `%s` instead.i   (   t   warningst   warnR   R   R   R	   (   t   argst   kwargs(   t   fR
   (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyt   wrapped   s
    (    (   R
   R   R   (    (   R   R
   sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyt   __call__   s    (   R   R   R   R   (    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR      s   	t   RenameMethodsBasec           B@  s   e  Z d  Z d Z d „  Z RS(   s#  
    Handles the deprecation paths when renaming a method.

    It does the following:
        1) Define the new method if missing and complain about it.
        2) Define the old method if missing.
        3) Complain whenever an old method is called.

    See #15363 for more details.
    c         C@  s)  t  t |  ƒ j |  | | | ƒ } xt j | ƒ D]ð } | j } xÞ |  j D]Ó } | d } | j j | ƒ }	 | d }
 | j j |
 ƒ } | d } t	 | | Œ } | r÷ |	 r÷ t
 j d | | |
 f | d ƒ t | |
 |	 ƒ t | | | |	 ƒ ƒ n  |	 rJ | rJ t | | | | ƒ ƒ qJ qJ Wq1 W| S(   Ni    i   i   s&   `%s.%s` method should be renamed `%s`.(   t   superR   t   __new__t   inspectt   getmroR   t   renamed_methodst   __dict__t   getR   R   R   t   setattr(   t   clst   namet   basest   attrst	   new_classt   baseR   t   renamed_methodR   t
   old_methodR   t
   new_methodR	   t   wrapper(    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR   1   s(    !	



!(    (   R   R   t   __doc__R   R   (    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR   #   s   
t   DeprecationInstanceCheckc           B@  s   e  Z d  „  Z RS(   c         C@  s<   t  j d |  j |  j f |  j d ƒ t t |  ƒ j | ƒ S(   Ns%   `%s` is deprecated, use `%s` instead.i   (   R   R   R   t   alternativeR	   R   R'   t   __instancecheck__(   R
   t   instance(    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR)   O   s    (   R   R   R)   (    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyR'   N   s   (   t
   __future__R    R   R   t   PendingDeprecationWarningR   t   DeprecationWarningR   t   RemovedInNextVersionWarningt   objectR   t   typeR   R'   (    (    (    sf   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/utils/deprecation.pyt   <module>   s   +