|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/utils/ |
Upload File : |
�
r�\c @ sH d d l Z d d l Z d e f d � � YZ d e f d � � YZ d S( i����Nt 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 ( ( s: /tmp/pip-install-XxeQeY/django/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 ( s: /tmp/pip-install-XxeQeY/django/django/utils/deprecation.pyt wrapped
s
( ( R R R ( ( R R s: /tmp/pip-install-XxeQeY/django/django/utils/deprecation.pyt __call__ s ( t __name__t
__module__R R
( ( ( s: /tmp/pip-install-XxeQeY/django/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 | | | | � } xt 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&