AlkantarClanX12

Your IP : 3.16.82.182


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/__pycache__/gather.cpython-311.pyc

�

�tg8���ddlZddlZddlZddlmZddlZddlmZm	Z	m
Z
eGd�d����Zdeefd�Z
dS)�N)�	dataclass)�DEFAULT_FLAGS_STORAGE_PATH�DEFAULT_META_STORAGE_PATH�DEFAULT_FLAG_GLOBc�J�eZdZUeed<eed<eed<ed���Zd�ZdS)�FlagInfo�name�description�pathc�J�tj�|j��S�N)�osr�isfile��selfs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.16-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/gather.py�enabledzFlagInfo.enableds���w�~�~�d�i�(�(�(�c�*�t|j��Sr
)�hashr	rs r�__hash__zFlagInfo.__hash__s���D�I���rN)�__name__�
__module__�__qualname__�str�__annotations__�propertyrr�rrrrs\�������

�I�I�I�����

�I�I�I�
�)�)��X�)�����rr�returnc��g}tj�tt��}tj|��D�]I}	t
|d���5}tj|��}ddd��n#1swxYwY|�td���|�
d��}|std���tj�|��}tj�t|��}|�t|�d��d||�
d	|���
������#t"$r.t%jd|��t%jd|��Y��GwxYw|S)
z}
    Gathers information about flags from DEFAULT_META_STORAGE_PATH
    and returns them in a python-friendly structure.
    zutf-8)�encodingNzEmpty or invalid YAML contentr
z!Missing 'description' in metadata�.���r)r	r
rzError processing %sz!Skipping flag %s due to an error.)rr�joinrr�glob�open�yaml�	safe_load�
ValueError�get�KeyError�basenamer�appendr�rsplit�	Exception�logging�	exception�error)�
meta_files�storage_glob�	meta_file�f�metadatar
�	flag_name�default_flag_paths        r�list_flags_infor:s���
"$�J��7�<�<� 9�;L�M�M�L��Y�|�,�,���	�	��i�'�2�2�2�
-�a��>�!�,�,��
-�
-�
-�
-�
-�
-�
-�
-�
-�
-�
-����
-�
-�
-�
-��� �!@�A�A�A�"�,�,�}�5�5�K��
D��B�C�C�C���(�(��3�3�I� "����-G�� S� S�����h��%�%�c�*�*�2�.�'��\�\�&�*;�<�<����
�
�
�
���	�	�	���3�Y�?�?�?��M�=�y�I�I�I��H�	����
�s7�E�A7�+E�7A;	�;E�>A;	�?CE�4F	�F	)r%r0�os.pathr�dataclassesrr'�clflags.configrrrr�listr:rrr�<module>r?s���������������!�!�!�!�!�!�����c�c�c�c�c�c�c�c�c�c��
�
�
�
�
�
�
���
�"��h��"�"�"�"�"�"r