관리-도구
편집 파일: pycompat24.cpython-39.opt-1.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"���|�]\}}��|���|�fV��qd�S�)Nr���)�.0�k�v)�_convertr���r ���� <genexpr>R��������z1literal_eval.<locals>._convert.<locals>.<genexpr>zmalformed string)� isinstancer���ZConst�valuer���r����float�complexr����Tuple�tuple�mapZnodes�List�list�Dict�dict�items�Name�nameZUnarySub�expr� ValueError)�node�r���Z_safe_namesr���r ���r���J���s����$ zliteral_eval.<locals>._convert)r���r���r ���r���Z Expressionr-���)Znode_or_stringr���r.���r ���r���=���s���� r���)r ���r���)Z __future__r���r���r����typeZ __metaclass__r���r ���r���r����ImportErrorZcompilerr ���Zansible.module_utils.sixr���r���r���r����__all__r���r���r���r ����<module>���s���