관리-도구
편집 파일: pycompat24.cpython-39.pyc
a �)gt � @ s� d dl mZmZmZ eZd dlZdd� Zzd dlm Z W nB e yz d dlmZmZ d dl mZmZmZmZ dd � Z Y n0 d ZdS )� )�absolute_import�division�print_functionNc C s t �� 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() � )�sys�exc_info� r r �C/usr/lib/python3.9/site-packages/ansible/module_utils/pycompat24.py� get_exception# s r )�literal_eval)�ast�parse)�binary_type� integer_types�string_types� text_typec sJ dddd��t | t�r"t| dd�} t | tj�r4| j} � �fdd�� � | �S ) a Safely evaluate an expression node or a string containing a Python expression. The string or node provided may only consist of the following Python literal structures: strings, numbers, tuples, lists, dicts, booleans, and None. NTF)�None�True�False�eval)�modec s� t | tj�r*t | jttttft �r*| jS t | tj �rFt t� | j��S t | tj �rbtt� | j��S t | tj�r�t� fdd�| �� D ��S t | tj�r�| j�v r| j S nt | tj�r | j� S td��d S )Nc 3 s"