Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/terminal/__pycache__/magics.cpython-39.pyc
Ðазад
a o�h � @ s� d Z ddlmZ ddlZddlZddlmZmZ ddlm Z m Z mZ ddlm Z ddlmZ ddlmZmZ dd lmZ ejd fdd�Ze G d d� de ��ZdS )zExtra magics for terminal use.� )�errorN)�TryNext� UsageError)�Magics�magics_class� line_magic)�ClipboardEmpty)�skip_doctest)�SList�strip_email_quotes)� py3compatFc c s^ |st d| � d}nd}z ||�}|| kr2W dS |V W q tyV t d� Y dS 0 qdS )zH Yield pasted lines until the user enters the given sentinel value. zAPasting code; enter '%s' alone on the line to stop or use Ctrl-D.�:� Nz<EOF>)�print�EOFError)�sentinelZl_input�quiet�prompt�l� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/terminal/magics.py�get_pasted_lines s � r c s| e Zd Z� fdd�Zddd�Zdd� Zdd d �Zeddd ��Ze eddd���Z eddd��Zej dkrtedd� �Z� ZS )�TerminalMagicsc s t t| ��|� d S )N)�superr �__init__)�self�shell�� __class__r r r ) s zTerminalMagics.__init__Fc C sn |r&t |�� �| jj|<