관리-도구
편집 파일: convert_bool.cpython-39.pyc
a �)gI � @ s\ d dl mZmZmZ eZd dlmZmZ d dl m Z ed�Zed�Z e�e �Zd dd�Zd S )� )�absolute_import�division�print_function)�binary_type� text_type)�to_text) �yZyesZon�1�true�t� g �?T) �n�noZoff�0Zfalse�fr g FTc C sx t | t�r| S | }t | ttf�r4t| dd��� �� }|tv r@dS |tv sL|sPdS t dt| �d� dd� tD ��f ��d S ) NZsurrogate_or_strict)�errorsTFzBThe value '%s' is not a valid boolean. Valid booleans include: %sz, c s s | ]}t |�V qd S )N)�repr)�.0�i� r �M/usr/lib/python3.9/site-packages/ansible/module_utils/parsing/convert_bool.py� <genexpr> � zboolean.<locals>.<genexpr>)� isinstance�boolr r r �lower�strip� BOOLEANS_TRUE�BOOLEANS_FALSE� TypeError�join�BOOLEANS)�value�strictZnormalized_valuer r r �boolean s r$ N)T)Z __future__r r r �typeZ __metaclass__Zansible.module_utils.sixr r Zansible.module_utils._textr � frozensetr r �unionr! r$ r r r r �<module> s