403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.217.120
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/IPython/core/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

}�e2����dZddlZddlmZddlZddlZddlZddlZddlZddl	Z	ddl
mZejejd�ejD��Zd
d�ZGd�dej"�Zd	�Zy)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#�PK�|]}tt|�j��� y�w�N)�getattr�
__future__�
compiler_flag)�.0�fnames  �9/usr/lib/python3/dist-packages/IPython/core/compilerop.py�	<genexpr>r
/s'����I�"'�&�j�%�8�F�F�I�s�$&c��tj|jd��j�}dj	||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_namer6s@��
�,�,�t�{�{�7�3�4�>�>�@�K�%�+�+�F�K���4D�E�E�c�X�eZdZdZd�Zdd�Zd�Zed��Zd�Z	d�Z
dd	�Zed
��Z
y)
�CachingCompilerzFA compiler that caches code compiled from interactive statements.
    c�P�tjj|�i|_yr)�codeop�Compile�__init__�
_filename_map��selfs rrzCachingCompiler.__init__Is��������%�
 ��rc�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_parseQs ��
�v�x�����m�1K�Q�O�Orc�.�tj|_y)z&Reset compiler flags to default state.N)r�PyCF_DONT_IMPLY_DEDENTr&r!s r�reset_compiler_flagsz$CachingCompiler.reset_compiler_flagsXs���2�2��
rc��|jS)z;Flags currently active in the compilation process.
        �r&r!s r�compiler_flagszCachingCompiler.compiler_flags^s���z�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_nameds��"�)�6�2�2rc�H�||jvrdd|j|zfSy)aNReturn a user-friendly label and name for a code block.

        Parameters
        ----------
        name : str
            The name for the code block returned from get_code_name

        Returns
        -------
        A (label, name) pair that can be used in tracebacks, or None if the default formatting should be used.
        �CellzIn[%s]N)r )r"�names  r�format_code_namez CachingCompiler.format_code_namews2���4�%�%�%��8�d�&8�&8��&>�>�>�>�&rNc���|�|}|j|||�}||j|<t|�d|j�D�cgc]}|dz��	c}|f}|tj
|<|Scc}w)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.
        N�
)r4r �len�
splitlines�	linecache�cache)r"r3rr2r7�line�entrys       rr>zCachingCompiler.cache�s���$��'�H��!�!�(�,<�f�E��$*����4� �
� �!��%5�%@�%@�%B�C�T�T�D�[�C��	
��!&�	��������	
Ds�A*c#�K�|j|z}|j|z|_	d��|xj|zc_y#|xj|zc_wxYw�wrr/)r"r&�turn_on_bitss   r�extra_flagszCachingCompiler.extra_flags�sT�����
�
�{�U�*���Z�Z�%�'��
�	(��
�J�J�<�-�'�J��D�J�J�<�-�'�J�s�%A�A�A�A�A)z	<unknown>�exec)rN)�__name__�
__module__�__qualname__�__doc__rr*r-�propertyr0r4r8r>rrC�rrrrEsO��� �P�3�����
3�&
?�,�\�(��(rrc�d�ddl}|jdtd��tj�y)a�Deprecated since IPython 8.6.  Call linecache.checkcache() directly.

    It was already not necessary to call this function directly.  If no
    CachingCompiler had been created, this function would fail badly.  If
    an instance had been created, this function would've been monkeypatched
    into place.

    As of IPython 8.6, the monkeypatching has gone away entirely.  But there
    were still internal callers of this function, so maybe external callers
    also existed?
    rNzHDeprecated Since IPython 8.6, Just call linecache.checkcache() directly.�)�
stacklevel)�warnings�warn�DeprecationWarningr=�
checkcache)�argsrNs  r�check_linecache_ipythonrS�s/����M�M�R�����
���r)r)rHr�astrr�	functoolsrr=�operator�time�
contextlibr�reduce�or_�all_feature_names�	PyCF_MASKrrrrSrJrr�<module>r]su��
�:��
������%�
�I���X�\�\�I�+5�+G�+G�I�
J�	�	F�{(�f�n�n�{(�|r

Youez - 2016 - github.com/yon3zu
LinuXploit