
    (phZ	              
       z    S r SSKrSSKrSSKJrJr  S\S\S\4S jrS\S\S\S\\/\4   4S	 jrS
\S\S\4S jr	g)a  Helper functions for deprecation.

This interface is itself unstable and may change without warning. Do
not use these functions yourself, even as a joke. The underscores are
there for a reason. No support will be given.

In particular, most of this will go away without warning once
Beautiful Soup drops support for Python 3.11, since Python 3.12
defines a `@typing.deprecated()
decorator. <https://peps.python.org/pep-0702/>`_
    N)AnyCallableold_namenew_nameversionc                    ^ ^^ [         S[        4UU U4S jj5       nUR                  S[        SS4UU U4S jj5       nU$ )zOAlias one attribute name to another for backward compatibility

:meta private:
returnc           	      d   > [         R                  " ST ST ST S3[        SS9  [        U T5      $ ):meta private:zAccess to deprecated property . (Replaced by ) -- Deprecated since version .   
stacklevelwarningswarnDeprecationWarninggetattr)selfr   r   r   s    C/var/www/html/venv/lib/python3.13/site-packages/bs4/_deprecation.pyalias _deprecated_alias.<locals>.alias   sB     	,XJohZOmnumvvwx	

 tX&&    valueNc           	      f   > [         R                  " ST ST ST S3[        SS9  [        U TU5      $ )r   zWrite to deprecated property r   r   r   r   r   )r   r   r   setattr)r   r   r   r   r   s     r   r   r   &   sD     	+H:_XJNlmtluuvw	

 tXu--r   )propertyr   setterstrr   r   r   r   s   ``` r   _deprecated_aliasr#      sU     's ' ' ' \\.3 .4 . . . Lr   r	   c                 D   ^ ^^ S[         S[         S[         4UU U4S jjnU$ )Nargskwargsr	   c           	      p   > [         R                  " ST ST ST S3[        SS9  [        U T5      " U0 UD6$ r   zCall to deprecated method r   r   r   r   r   r   )r   r%   r&   r   r   r   s      r   r   )_deprecated_function_alias.<locals>.alias6   sJ    (
/(Kijqirrst	

 tX&777r   )r   r"   s   ``` r   _deprecated_function_aliasr*   3   s)    83 8# 8# 8 8 Lr   replaced_byc                 4   ^ ^ S[         S[         4U U4S jjnU$ )Nfuncr	   c                 t   >^  [         R                  " T 5      S[        S[        S[        4U UU4S jj5       nU$ )Nr%   r&   r	   c            	      p   > [         R                  " STR                   ST ST S3[        SS9  T" U 0 UD6$ r(   )r   r   __name__r   )r%   r&   r-   r+   r   s     r   with_warning4_deprecated.<locals>.deprecate.<locals>.with_warningD   sL     MM,T]]O?;-Wuv}u~~  A"
 (((r   )	functoolswrapsr   )r-   r1   r+   r   s   ` r   	deprecate_deprecated.<locals>.deprecateC   s@    			) 	)s 	)s 	) 	) 
	) r   )r   )r+   r   r5   s   `` r   _deprecatedr7   B   s#     X   r   )
__doc__r3   r   typingr   r   r!   r#   r*   r7    r   r   <module>r;      s{   
   s S : +.seSjS 3 8 r   