9,jh |dZddlZddlZddlmZmZdededefdZdedededeegeffd Zd ededefd Z dS) aHelper 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. `_ N)AnyCallableold_namenew_nameversionctdtffd }|jdtddffd }|S)zWAlias one attribute name to another for backward compatibility :meta private: returnc ptjddddtdt|S):meta private:zAccess to deprecated property . (Replaced by ) -- Deprecated since version . stacklevelwarningswarnDeprecationWarninggetattr)selfrrrs @C:\PYTHON\GemmaClient\venv\Lib\site-packages\bs4/_deprecation.pyaliasz _deprecated_alias..aliassU  xX x xh x xnu x x x     tX&&&valueNc rtjddddtdt||S)r zWrite to deprecated property r r rrr)rrrsetattr)rrrrrs rrz _deprecated_alias..alias&sW  wH w wX w wmt w w w     tXu---r)propertyrsetterstrrrrrs``` r_deprecated_aliasr"s 's'''''''X' \.3.4.......\. Lrr cFdtdtdtffd }|S)Nargskwargsr c |tjddddtdt||i|Sr zCall to deprecated method r r rrrr)rr$r%rrrs rrz)_deprecated_function_alias..alias6sb t t t( t tjq t t t     'wtX&&7777r)rr!s``` r_deprecated_function_aliasr(3sI838#8#88888888 Lr replaced_byc4dtdtffd }|S)Nfuncr cxtjdtdtdtffd }|S)Nr$r%r c jtjdjdddtd|i|Sr')rr__name__r)r$r%r+r)rs r with_warningz4_deprecated..deprecate..with_warningDst MAT]AA;AAv}AAA"     4((( (r) functoolswrapsr)r+r/r)rs` r deprecatez_deprecated..deprecateCs^    ) )s )s ) ) ) ) ) ) )   )r)r)r)rr2s`` r _deprecatedr3Bs=  X        r) __doc__r0rtypingrrr r"r(r3rrr7s   sS:    +.  seSj    S38r