
    b&                     <    d dl Z d dlmZ d dlmZ dZdZdddefdZy)    N)	signature)_utilsz:, please update the code to explicitly set %s as the valuez3The %s argument is changing its default value to %s   c                 x    
 t          |fz  }t        |z  }t        j                  ||||      
 
fd}	|	S )z@Decorates a kwarg accepting function to change the default value)postfixmessageversionc                     t        |       }t        |j                  j                               t        j
                  fd       } ||       S )Nc                     t        d t        |       t        |j                               z         }t              }t        ||z
        }|v rt	        j
                  	
        | |i |S )N)
stacklevelcategory)setlenlistkeysr   deprecation)wrappedinstanceargskwargsexplicit_params	allparamsdefault_paramsr   nameout_messager   varnamess          8/usr/lib/python3/dist-packages/debtcollector/updating.pywrapperz?updated_kwarg_default_value.<locals>.decorator.<locals>.wrapper*   ss    !#d)$tFKKM'::O HI _!<=N~%"";.88MD+F++    )r   r   
parametersr   wrapt	decorator)fsigr   r   r   r   r   r   s      @r   r"   z.updated_kwarg_default_value.<locals>.decorator&   sE    l++-.			, 
		, qzr   )_KWARG_UPDATED_PREFIX_TPL_KWARG_UPDATED_POSTFIX_TPLr   generate_message)r   	old_value	new_valuer   r	   r   r   prefixr   r"   r   s   `    ``   @r   updated_kwarg_default_valuer+      sE     '$	)::F(94G))'CK$ r   )	r!   inspectr   debtcollectorr   r&   r%   FutureWarningr+    r   r   <module>r0      s4       - %  EI(,)6r   