Yohohohohohooho | Sanrei Aya
Sanrei Aya


Server : LiteSpeed
System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : elvh3918 ( 1528)
PHP Version : 8.2.31
Disable Function : mail
Directory :  /lib/python3.9/site-packages/ansible/module_utils/common/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.9/site-packages/ansible/module_utils/common/__pycache__/locale.cpython-39.pyc
a

�)g	�@s2ddlmZmZmZeZddlmZddd�ZdS)�)�absolute_import�division�print_function)�	to_nativeNFc
Cs�d}z�|�d�}|std��g}|dur0gd�}|�|dg�\}}}|dkrt|r^|����}q�td|t|�f��ntd	|t|�f��|r�|D]}	|	|vr�|	}q�q�Wn>ty�}
z&|r��n|�d
t|
��WYd}
~
n
d}
~
00|�d|�|S)aR
        Attempts to return the best possible locale for parsing output in English
        useful for scraping output with i18n tools. When this raises an exception
        and the caller wants to continue, it should use the 'C' locale.

        :param module: an AnsibleModule instance
        :param preferences: A list of preferred locales, in order of preference
        :param raise_on_locale: boolean that determines if we raise exception or not
                                due to locale CLI issues
        :returns: The first matched preferred locale or 'C' which is the default
    �C�localezCould not find 'locale' toolN)zC.utf8zC.UTF-8z
en_US.utf8zen_US.UTF-8rZPOSIXz-arz No output from locale, rc=%s: %sz+Unable to get locale information, rc=%s: %sz$Failed to get locale information: %szMatched preferred locale to: %s)Zget_bin_path�RuntimeWarningZrun_command�strip�
splitlinesr�debug)�moduleZpreferencesZraise_on_locale�foundrZ	available�rc�out�errZpref�e�r�F/usr/lib/python3.9/site-packages/ansible/module_utils/common/locale.py�get_best_parsable_locale
s2


(r)NF)	Z
__future__rrr�typeZ
__metaclass__Zansible.module_utils._textrrrrrr�<module>s

Yohohohohohooho | Sanrei Aya