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/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.9/site-packages/ansible/utils/__pycache__/context_objects.cpython-39.pyc
a

�)g/�@s�ddlmZmZmZeZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZmZmZddlmZdd�ZGd	d
�d
ee�ZGdd�de�Zee�Gd
d�de��ZdS)�)�absolute_import�division�print_function)�ABCMeta)�	Container�Mapping�Sequence�Set)�
ImmutableDict)�
add_metaclass�binary_type�	text_type)�	SingletoncCs�t|ttf�r|St|t�rZi}|��D](\}}t|t�rHt|�||<q(|||<q(t|�St|t�r�t	�}|D](}t|t�r�|�
t|��qn|�
|�qnt|�St|t�r�g}|D](}t|t�r�|�
t|��q�|�
|�q�t|�S|S)zRRecursively convert a container and objects inside of it into immutable data types)�
isinstancer
rr�itemsr�_make_immutabler
r	�set�add�	frozensetr�append�tuple)�objZ	temp_dict�key�valueZtemp_setZ
temp_sequence�r�A/usr/lib/python3.9/site-packages/ansible/utils/context_objects.pyrs0






rc@seZdZdZdS)�
_ABCSingletonz�
    Combine ABCMeta based classes with Singleton based classes

    Combine Singleton and ABCMeta so we have a metaclass that unambiguously knows which can override
    the other.  Useful for making new types of containers which are also Singletons.
    N��__name__�
__module__�__qualname__�__doc__rrrrr5srcs,eZdZdZ�fdd�Zedd��Z�ZS)�CLIArgsa/
    Hold a parsed copy of cli arguments

    We have both this non-Singleton version and the Singleton, GlobalCLIArgs, version to leave us
    room to implement a Context object in the future.  Whereas there should only be one set of args
    in a global context, individual Context objects might want to pretend that they have different
    command line switches to trigger different behaviour when they run.  So if we support Contexts
    in the future, they would use CLIArgs instead of GlobalCLIArgs to store their version of command
    line flags.
    cs6i}|��D]\}}t|�||<qtt|��|�dS�N)rr�superr"�__init__)�self�mappingZtoplevelrr��	__class__rrr%JszCLIArgs.__init__cCs|t|��Sr#)�vars)�cls�optionsrrr�from_optionsPszCLIArgs.from_options)rrr r!r%�classmethodr-�
__classcell__rrr(rr"?s
r"c@seZdZdZdS)�
GlobalCLIArgsz|
    Globally hold a parsed copy of cli arguments.

    Only one of these exist per program as it is for global context
    Nrrrrrr0Usr0N)Z
__future__rrr�typeZ
__metaclass__�abcr�collections.abcrrrr	Z'ansible.module_utils.common.collectionsr
Zansible.module_utils.sixrrr
Zansible.utils.singletonrrrr"r0rrrr�<module>s!


Yohohohohohooho | Sanrei Aya