
    qc
                     V    d Z ddlZddlmZ  ee          Z G d de          Zd ZdS )z
Note that DeprecationWarnings are ignored by default in Python
2.7/3.2+, so be sure to either un-ignore them in your code, or run
Python with the -Wd flag.
    N)warnc                   (     e Zd Z fdZ fdZ xZS )DeprecatableModulec                     |j         }t          t          |                               |           | j                            |j                   d S )N)name)__name__superr   __init____dict__update)selfmoduler   	__class__s      1lib/python3.11/site-packages/boltons/deprutils.pyr
   zDeprecatableModule.__init__1   sJ     $''00d0;;;V_-----    c                     t          t          |           j        }	  |d          }n# t          $ r i x| _        }Y nw xY w ||          }|                    |          }|t          |t          d           |S )N_deprecated_members   )
stacklevel)r	   r   __getattribute__AttributeErrorr   getr   DeprecationWarning)r   r   get_attributedeprosretmessager   s         r   r   z#DeprecatableModule.__getattribute__6   s    0$77H	3"]#899FF 	3 	3 	3022D$vvv	3mD!!**T"" 	<,;;;;
s   ) ??)r   
__module____qualname__r
   r   __classcell__)r   s   @r   r   r   0   sQ        . . . . .

 
 
 
 
 
 
 
 
r   r   c                     t           j        |          }t          |t                    st          |          xt           j        | <   }||j        |<   d S )N)sysmodules
isinstancer   r   )mod_namer   r   r   s       r   deprecate_module_memberr&   C   sM    ["Ff011 D);F)C)CCH'.Ft$
Fr   )__doc__r"   warningsr   type
ModuleTyper   r&    r   r   <module>r,      s}   D  


      T#YY

       &    r   