
    VhU                    >    d dl mZ d dlmZ g Zg Zd ZddZd Zd Z	y)	    )annotations)string_typesc                |    t        | t              rt        j                  |        y t	        dt        |       z        )Nzwarn requires a string not a %s)
isinstancer   _global_warningsappend	TypeErrortype)warnings    T/home/dcms/DCMS/lib/python3.12/site-packages/ansible/module_utils/common/warnings.pywarnr      s/    '<((9DMIJJ    Nc                    t        | t              r6|t        j                  | ||d       y t        j                  | ||d       y t	        dt        |       z        )N)msgdatecollection_name)r   versionr   z$deprecate requires a string not a %s)r   r   _global_deprecationsr   r	   r
   )r   r   r   r   s       r   	deprecater      sU    #|$  ''TVe(fg ''\k(lm>cJKKr   c                      t        t              S )z<Return a tuple of warning messages accumulated over this run)tupler    r   r   get_warning_messagesr       s    !""r   c                      t        t              S )z8Return a tuple of deprecations accumulated over this run)r   r   r   r   r   get_deprecation_messagesr   %   s    %&&r   )NNN)

__future__r   ansible.module_utils.sixr   r   r   r   r   r   r   r   r   r   <module>r      s/   
 # 1  K	L#
'r   