403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.25
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 :  /lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/IPython/utils/__pycache__/contexts.cpython-311.pyc
�

�@�cS��.�dZddlZGd�de��ZdS)z Miscellaneous context managers.
�Nc�$�eZdZdZd�Zd�Zd�ZdS)�
preserve_keysa
Preserve a set of keys in a dictionary.

    Upon entering the context manager the current values of the keys
    will be saved. Upon exiting, the dictionary will be updated to
    restore the original value of the preserved keys. Preserved keys
    which did not exist when entering the context manager will be
    deleted.

    Examples
    --------

    >>> d = {'a': 1, 'b': 2, 'c': 3}
    >>> with preserve_keys(d, 'b', 'c', 'd'):
    ...     del d['a']
    ...     del d['b']      # will be reset to 2
    ...     d['c'] = None   # will be reset to 3
    ...     d['d'] = 4      # will be deleted
    ...     d['e'] = 5
    ...     print(sorted(d.items()))
    ...
    [('c', None), ('d', 4), ('e', 5)]
    >>> print(sorted(d.items()))
    [('b', 2), ('c', 3), ('e', 5)]
    c�"�||_||_dS�N)�
dictionary�keys)�selfrrs   �8/usr/lib/python3/dist-packages/IPython/utils/contexts.py�__init__zpreserve_keys.__init__%s��$�����	�	�	�c��g}i}|j}|jD]'}||vr||||<�|�|���(||_||_dSr)rr�append�	to_delete�	to_update)r	rr�d�ks     r
�	__enter__zpreserve_keys.__enter__)se���	��	��O����	$�	$�A��A�v�v� ��t�	�!���� � ��#�#�#�#�"���"����rc��|j}|jD]}|�|d���|�|j��dSr)rr�pop�updater)r	�exc_inforrs    r
�__exit__zpreserve_keys.__exit__8sG���O����	�	�A�
�E�E�!�T�N�N�N�N�	����� � � � � rN)�__name__�
__module__�__qualname__�__doc__rrr�rr
rrsK��������2���
#�
#�
#�!�!�!�!�!rr)r�warnings�objectrrrr
�<module>r sN��������2!�2!�2!�2!�2!�F�2!�2!�2!�2!�2!r

Youez - 2016 - github.com/yon3zu
LinuXploit