
    Vh                    4    d dl mZ d dlZd dlmZ d Zd ZdZy)    )annotationsN)	deprecatec                 J    t        dd       t        j                         d   S )a8  Get the current exception.

    This code needs to work on Python 2.4 through 3.x, so we cannot use
    "except Exception, e:" (SyntaxError on Python 3.x) nor
    "except Exception as e:" (SyntaxError on Python 2.4-2.5).
    Instead we must use ::

        except Exception:
            e = get_exception()

    zKThe `ansible.module_utils.pycompat24.get_exception` function is deprecated.2.19msgversion   )r   sysexc_info     O/home/dcms/DCMS/lib/python3.12/site-packages/ansible/module_utils/pycompat24.pyget_exceptionr   $   s'     "
 <<>!r   c                j    | dk(  rt        d|  dd       ddlm} |S t        d| d	t        d
      )z>Inject import-time deprecation warning for ``literal_eval()``.literal_evalz%The `ansible.module_utils.pycompat24.z` function is deprecated.r   r   r   )r   zcannot import name z has no attribute ())r   astr   AttributeError__file__)importable_namer   s     r   __getattr__r   8   sW    .(78:	

 	%

o1 2%M	, r   )r   r   )
__future__r   r   $ansible.module_utils.common.warningsr   r   r   __all__r   r   r   <module>r      s!   : # 
 :(" ,r   