Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/lib/__pycache__/deepreload.cpython-39.pyc
Ðазад
a o�h�$ � @ s� d Z ddlZddlmZ ddlZddlZddlmZ ddl m Z ddlZejZedd� �Z dd � Zd d� Zi add � Zdd� Zdd� Zddd�Zi add� ZejZg ej�d�d�d�d�d�d�R fdd�ZdS ) a� Provides a reload() function that acts recursively. Python's normal :func:`python:reload` function only reloads the module that it's passed. The :func:`reload` function in this module also reloads everything imported from that module, which is useful when you're changing files deep inside a package. To use this as your default reload function, type this:: import builtins from IPython.lib import deepreload builtins.reload = deepreload.reload A reference to the original :func:`python:reload` is stored in this module as :data:`original_reload`, so you can restore it later. This code is almost entirely based on knee.py, which is a Python re-implementation of hierarchical module import. � N)�contextmanager)� ModuleType)�warnc c s* t j}| t _zd V W |t _n|t _0 d S )N)�builtin_mod� __import__)Z new_importZsaved_import� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/lib/deepreload.py�replace_import_hook( s r c C s� |}|rt | t�sdS | �dd�}|durbt|d�s<td��t|�dkr\|dkrXtd��dS |}n|d| vrndS | d }d | v r�| | d<