Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/astroid/interpreter/_import/__pycache__/util.cpython-39.pyc
Ðазад
a k�h^ � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZ ejdkrdd dl mZ nd d lmZ ed d�dd d�dd��ZdS )� )�annotationsN)� lru_cache)�_NamespacePath)�_find_spec_from_path)�IS_PYPY)� � )�NamespaceLoader)�_NamespaceLoaderi )�maxsize�str�bool)�modname�returnc s� ddl m}m} |�|�� | tjv r(dS d }g }d }| �d�D �]H}|�|� d�|�}zt ||d�}W n� t y~ Y dS t�y | dkr�Y dS zBtj|d }|j d u o�t|dd �d u o�t|d�o�t W Y S t� y� Y Y dS t �y Y Y dS 0 Y nB t�yV |�rN|d } t�| �| } |�t| �� Y q>Y n0 |r>|jr>t� fd d�|jD ���r� dS |j}q>|d u�o�|jd u�o�|jd u �o�|jd u �p�t|jt�S )Nr )�EXT_LIB_DIRS�STD_LIB_DIRSF�.)�path�__main__�__file__�__path__���c 3 s$ | ]� t � fd d��D ��V qdS )c 3 s | ]}� � |�V qd S )N)� startswith)�.0�lib_dir��location� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/astroid/interpreter/_import/util.py� <genexpr>c � z)is_namespace.<locals>.<genexpr>.<genexpr>N)�any)r �ZSTD_AND_EXT_LIB_DIRSr r r b s �zis_namespace.<locals>.<genexpr>)Zastroid.modutilsr r �union�sys�builtin_module_names�split�append�joinr �AttributeError� ValueError�modules�__spec__�getattr�hasattrr �KeyError�pathlib�Pathr �submodule_search_locationsr! �origin�loader� isinstancer )r r r Z found_specZprocessed_componentsZlast_submodule_search_locations� componentZworking_modname�modZ last_itemZassumed_locationr r"