Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/core/__pycache__/inputtransformer2.cpython-39.pyc
Ðазад
a o�h�r � @ sd d Z ddlZddlmZmZ ddlZddlZddlZddlm Z m Z mZmZ ddl Z ddlmZ e�d�Zdd� Zd d � ZG dd� d�Zee�d �e�d�d�Zee�dej��Zdd� Zee d�dd�Zed�dd�Ze eef ed�dd�ZG dd� d�ZG dd� de�ZG d d!� d!e�Zd"Z d#Z!d$Z"d%Z#d&Z$d'Z%d(Z&d)Z'd*Z(h d+�Z)d#d%hZ*d,d-� Z+d.d/� Z,d0d1� Z-d2d3� Z.d4d5� Z/d6d7� Z0d8d9� Z1e d:j2e!d;j2e"e,e#e-e$e.e&e/e'e0e(e1iZ3G d<d=� d=e�Z4e�d>ej�Z5G d?d@� d@e�Z6e e7 dA�dBdC�Z8e ej9 dD�dEdF�Z:e7dG�dHdI�Z;dJZ<G dKdL� dL�Z=dMdN� Z>G dOdP� dPe�Z?G dQdR� dRe�Z@ejAZBe@eBdS�ZCdS )Ta5 Input transformer machinery to support IPython special syntax. This includes the machinery to recognise and transform ``%magic`` commands, ``!system`` commands, ``help?`` querying, prompt stripping, and so forth. Added: IPython 7.0. Replaces inputsplitter and inputtransformer which were deprecated in 7.0. � N)�CommandCompiler�Compile)�List�Tuple�Optional�Any)� tokenutilz^[ \t]+c C s: | s| S t | �D ]$\}}|r|�� s| |d� S q| S )zyRemove leading empty lines If the leading lines are empty or contain only whitespace, they will be removed. N)� enumerate�isspace)�lines�i�line� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/core/inputtransformer2.py�leading_empty_lines s r c sD | s| S t �| d �}|s| S |�d��t��� � �fdd�| D �S )z�Remove leading indentation. If the first line starts with a spaces or tabs, the same whitespace will be removed from each following line in the cell. r c s&