Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/core/__pycache__/macro.cpython-39.pyc
Ðазад
a o�h� � @ s6 d Z ddlZddlmZ e�d�ZG dd� de�ZdS )z)Support for interactive macros in IPython� N)�DEFAULT_ENCODINGz#\s*coding[:=]\s*([-\w.]+)c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) �Macroz�Simple class to store the value of macros as strings. Macro is just a callable that executes a string of IPython input when called. c C sj g }d}|� � D ](}t�|�}|r.|�d�}q|�|� qd�|�}t|t�r\|�|pXt �}|d | _ dS )z?store the macro value, as a single string which can be executedN� � )� splitlines�coding_declaration�match�group�append�join� isinstance�bytes�decoder �value)�self�code�lines�enc�lineZcoding_match� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/core/macro.py�__init__ s zMacro.__init__c C s | j S �N�r �r r r r �__str__&