403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/traitlets/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/traitlets/config/__pycache__/manager.cpython-311.pyc
�

�Uc		��\�dZddlZddlZddlZddlmZddlmZd�ZGd�de��Z	dS)z6Manager to read and modify config data in JSON files.
�N)�LoggingConfigurable)�Unicodec��|���D]c\}}t|t��r+||vri||<t|||��||s||=�E|�|�|d���^|||<�ddS)z^Recursively update one dictionary using another.

    None values will delete their keys.
    N)�items�
isinstance�dict�recursive_update�pop)�target�new�k�vs    �:/usr/lib/python3/dist-packages/traitlets/config/manager.pyr	r	
s���
�	�	���
�
���1��a����	�������q�	��V�A�Y��*�*�*��!�9�
��1�I��
�Y��J�J�q�$������F�1�I�I�
�
�c�F�eZdZdZed��Zd�Zd�Zd�Zd�Z	d�Z
dS)	�BaseJSONConfigManagerzYGeneral JSON config manager

    Deals with persisting/storing config in a json file
    �.c��	tj|jd��dS#t$r!}|jtjkr�Yd}~dSd}~wwxYw)Ni�)�os�makedirs�
config_dir�OSError�errno�EEXIST)�self�es  r�ensure_config_dir_existsz.BaseJSONConfigManager.ensure_config_dir_exists*sf��	��K����/�/�/�/�/���	�	�	��w�%�,�&�&��'�&�&�&�&�&�����	���s��
A	�A�A	c�R�tj�|j|dz��S)Nz.json)r�path�joinr)r�section_names  r�	file_namezBaseJSONConfigManager.file_name1s���w�|�|�D�O�\�G�-C�D�D�Drc���|�|��}tj�|��r?t	|d���5}tj|��cddd��S#1swxYwYdSiS)z�Retrieve the config data for the specified section.

        Returns the data as a dictionary, or an empty dictionary if the file
        doesn't exist.
        �utf-8��encodingN)r"rr�isfile�open�json�load)rr!�filename�fs    r�getzBaseJSONConfigManager.get4s����>�>�,�/�/��
�7�>�>�(�#�#�	��h��1�1�1�
$�Q��y��|�|�
$�
$�
$�
$�
$�
$�
$�
$�
$�
$�
$�
$����
$�
$�
$�
$�
$�
$��Is�A'�'A+�.A+c���|�|��}|���t|dd���}|5tj||d���ddd��dS#1swxYwYdS)zStore the given config data.�wr$r%�)�indentN)r"rr(r)�dump)rr!�datar+r,s     r�setzBaseJSONConfigManager.setAs����>�>�,�/�/���%�%�'�'�'���3��1�1�1��
�	)�	)��I�d�A�a�(�(�(�(�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)����	)�	)�	)�	)�	)�	)s�A#�#A'�*A'c�|�|�|��}t||��|�||��|S)z�Modify the config section by recursively updating it with new_data.

        Returns the modified config data as a dictionary.
        )r-r	r4)rr!�new_datar3s    r�updatezBaseJSONConfigManager.updateJs>��
�x�x��%�%����x�(�(�(�����t�$�$�$��rN)�__name__�
__module__�__qualname__�__doc__rrrr"r-r4r7�rrrr"s{��������
�����J����E�E�E����)�)�)�����rr)
r;rr)r�traitlets.configr�traitlets.traitletsrr	rr<rr�<module>r?s�����
��������	�	�	�	�0�0�0�0�0�0�'�'�'�'�'�'����*0�0�0�0�0�/�0�0�0�0�0r

Youez - 2016 - github.com/yon3zu
LinuXploit