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/IPython/core/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/core/__pycache__/compilerop.cpython-311.pyc
�

�@�c(����dZddlZddlmZddlZddlZddlZddlZddlZddl	Z	ddl
mZejej
d�ejD����Zd
d�ZGd�dej��Zd	�ZdS)z�Compiler tools with improved interactive support.

Provides compilation machinery similar to codeop, but with caching support so
we can provide interactive tracebacks.

Authors
-------
* Robert Kern
* Fernando Perez
* Thomas Kluyver
�N)�
PyCF_ONLY_AST)�contextmanagerc#�JK�|]}tt|��jV��dS�N)�getattr�
__future__�
compiler_flag)�.0�fnames  �9/usr/lib/python3/dist-packages/IPython/core/compilerop.py�	<genexpr>r
/sK����I�I�"'�&�j�%�8�8�F�I�I�I�I�I�I�c��tj|�d�������}d�||dd���S)zf Compute a (probably) unique name for code for caching.

    This now expects code to be unicode.
    zutf-8z<ipython-input-{0}-{1}>N�)�hashlib�sha1�encode�	hexdigest�format)�code�number�hash_digests   r�	code_namer6sL��
�,�t�{�{�7�3�3�4�4�>�>�@�@�K�%�+�+�F�K����4D�E�E�Erc�`�eZdZdZd�Zd
d�Zd�Zed���Zd�Z	dd�Z
ed���Zd
S)�CachingCompilerzFA compiler that caches code compiled from interactive statements.
    c��tj�|��ttd��sit_ttd��stjt_tt_i|_	dS)N�_ipython_cache�_checkcache_ori)
�codeop�Compile�__init__�hasattr�	linecacher�
checkcacher�check_linecache_ipython�
_filename_map��selfs rr!zCachingCompiler.__init__Ism�������%�%�%��y�"2�3�3�	*�')�I�$��y�"3�4�4�	=�(1�(<�I�%� 7�	��
 ����r�	<unknown>�execc�B�t||||jtzd��S)z�Parse code to an AST with the current compiler flags active.

        Arguments are exactly the same as ast.parse (in the standard library),
        and are passed to the built-in compile function.�)�compile�flagsr)r(�source�filename�symbols    r�	ast_parsezCachingCompiler.ast_parseds!��
�v�x����m�1K�Q�O�O�Orc�(�tj|_dS)z&Reset compiler flags to default state.N)r�PyCF_DONT_IMPLY_DEDENTr.r's r�reset_compiler_flagsz$CachingCompiler.reset_compiler_flagsks���2��
�
�
rc��|jS)z;Flags currently active in the compilation process.
        �r.r's r�compiler_flagszCachingCompiler.compiler_flagsqs���z�rc�"�t||��S)a�Compute filename given the code, and the cell number.

        Parameters
        ----------
        raw_code : str
            The raw cell code.
        transformed_code : str
            The executable Python source code to cache and compile.
        number : int
            A number which forms part of the code's name. Used for the execution
            counter.

        Returns
        -------
        The computed filename.
        )r)r(�raw_code�transformed_coders    r�
get_code_namezCachingCompiler.get_code_namews��"�)�6�2�2�2rrNc��|�|}|�|||��}||j|<t|��tj��d�|���D��|f}|t
j|<|t
j|<|S)ahMake a name for a block of code, and cache the code.

        Parameters
        ----------
        transformed_code : str
            The executable Python source code to cache and compile.
        number : int
            A number which forms part of the code's name. Used for the execution
            counter.
        raw_code : str
            The raw code before transformation, if None, set to `transformed_code`.

        Returns
        -------
        The name of the cached code (as a string). Pass this as the filename
        argument to compilation, so that tracebacks are correctly hooked up.
        Nc��g|]}|dz��S)�
�)r
�lines  r�
<listcomp>z)CachingCompiler.cache.<locals>.<listcomp>�s��C�C�C�T�T�D�[�C�C�Cr)r<r&�len�time�
splitlinesr#�cacher)r(r;rr:�name�entrys      rrFzCachingCompiler.cache�s���$��'�H��!�!�(�,<�f�E�E��$*���4� �
� �!�!��I�K�K�C�C�%5�%@�%@�%B�%B�C�C�C��	
��!&�	����).�	� ��&��rc#�K�|j|z}|j|z|_	dV�|xj|zc_dS#|xj|zc_wxYwrr7)r(r.�turn_on_bitss   r�extra_flagszCachingCompiler.extra_flags�sf�����
�{�U�*���Z�%�'��
�	(��E�E�E�
�J�J�<�-�'�J�J�J�J��D�J�J�<�-�'�J�J�J�J�J�Js	�5�A)r)r*)rN)
�__name__�
__module__�__qualname__�__doc__r!r2r5�propertyr8r<rFrrKr@rrrrEs��������� � � �6P�P�P�P�3�3�3�����X��
3�3�3�&"�"�"�"�H�(�(��^�(�(�(rrc�t�tj|�tj�tj��dS)zECall linecache.checkcache() safely protecting our cached values.
    N)r#rrF�updater)�argss rr%r%�s3����t�$�$��O���9�3�4�4�4�4�4r)r)rOr�astrr�	functoolsrr#�operatorrD�
contextlibr�reduce�or_�all_feature_names�	PyCF_MASKrr rr%r@rr�<module>r\s#��
�
�:����������
�
�
�
���������������������%�%�%�%�%�%�
�I��X�\�I�I�+5�+G�I�I�I�
J�
J�	�	F�	F�	F�	F�u(�u(�u(�u(�u(�f�n�u(�u(�u(�p5�5�5�5�5r

Youez - 2016 - github.com/yon3zu
LinuXploit