| Server IP : 35.80.110.71 / Your IP : 216.73.216.170 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 : |
�
}�eG � �R � d Z ddlZddlZddlZddlZddlmZmZ ddlmZ ddl m
Z
ddlmZ dZ
dZd Zd
ZdZdZd
ZdZdZe
eeeeeeeeg Z G d� dej. �� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Zej: d� � Zdedededefd �Z d!e
fd"�Z!d!e
fd#�Z"d!e
fd$�Z#d!e
fd%�Z$d!e
fd&�Z%d!e
fd'�Z&d!e
fd(�Z'e
e!ee"ee#ee#ee$ee%ee&ee'iZ(ej: d)efd*�� Z) ejT d+� Z+ ejT d,ejX � Z- e.� Z/ e.� Z0d-� Z1d.� Z2d/� Z3ej: d)efd0�� Z4ej: d>d1e5fd2�� Z6d?d3�Z7ej: d4� � Z8ej: d5� � Z9ej: d6� � Z:d7Z; ejT d8jy e;� ejX � Z=d9Z>ej: d:� � Z? ejT d;jy e;� ejX � Z@d<ZAej: d=� � ZBy)@a, DEPRECATED: Input transformer classes to support IPython special syntax.
This module was deprecated in IPython 7.0, in favour of inputtransformer2.
This includes the machinery to recognise and transform ``%magic`` commands,
``!system`` commands, ``help?`` querying, prompt stripping, and so forth.
� N)�
untokenize�
TokenError)�StringIO)�LineInfo)� tokenutil�!z!!�?�??�%z%%�,�;�/c �h � e Zd ZdZej
d� � Zej
d� � Zed� � Z y)�InputTransformerz6Abstract base class for line-based input transformers.c � � y)a1 Send a line of input to the transformer, returning the transformed
input or None if the transformer is waiting for more input.
Must be overridden by subclasses.
Implementations may raise ``SyntaxError`` if the input is invalid. No
other exceptions may be raised.
N� ��self�lines �?/usr/lib/python3/dist-packages/IPython/core/inputtransformer.py�pushzInputTransformer.push. s � �
� c � � y)z�Return, transformed any lines that the transformer has accumulated,
and reset its internal state.
Must be overridden by subclasses.
Nr �r s r �resetzInputTransformer.reset: s � �
r c �F � �� t j �� � �fd�� }|S )z�Can be used by subclasses as a decorator, to return a factory that
will allow instantiation with the decorated object.
c � �� ��fi | ��S �Nr )�kwargs�cls�funcs ��r �transformer_factoryz2InputTransformer.wrap.<locals>.transformer_factoryH s �� ��t�&�v�&�&r )� functools�wraps)r r! r"