← Back
Editing: magics.cpython-311.pyc
� �@�c� � � � d Z ddlmZ ddlZddlZddlmZmZ ddlm Z m Z mZ ddlm Z ddlmZ ddlmZmZ dd lmZ ej d fd�Ze G d� d e � � � � ZdS )zExtra magics for terminal use.� )�errorN)�TryNext� UsageError)�Magics�magics_class� line_magic)�ClipboardEmpty)�skip_doctest)�SList�strip_email_quotes)� py3compatFc # � K � |st d| z � � d}nd} ||� � }|| k rdS |V � n # t $ r t d� � Y dS w xY w�:)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.�:� TNz<EOF>)�print�EOFError)�sentinel�l_input�quiet�prompt�ls �9/usr/lib/python3/dist-packages/IPython/terminal/magics.py�get_pasted_linesr s� � � � � � � �Q��� � � ������ � ������A��H�}�}���������� � � ��'�N�N�N��F�F� ���� s �6 �6 �A�Ac � � � e Zd Z� fd�Zd� Zd� Zdd�Zed d�� � Ze ed d�� � � � Z ed d �� � Zej d k red� � � Z� xZS � xZS )�TerminalMagicsc �X �� t t | � � � |� � d S )N)�superr �__init__)�self�shell� __class__s �r r zTerminalMagics.__init__) s'