관리-도구
편집 파일: abc.cpython-310.opt-1.pyc
o 6��fU8 � @ s� d Z ddlmZ ddlmZ zddlZW n ey. Z zejdkr"� dZW Y dZ[ndZ[ww zddlZW n ey@ eZY nw ddl m Z ddlZddlZddl mZmZmZ dd l mZmZ d d� ZG dd � d ejd�ZG dd� dejd�Zeeejejejej� G dd� dejd�Zeeej� G dd� de �ZG dd� de �Zeeejej� G dd� de�Zeeej � G dd� dej!ee�Z!ee!ej"ej#� G dd� dej$ee�Z$ee$ej"� G dd� dejd�Z%eG dd � d e��Z&G d!d"� d"e%�Z'dS )#z(Abstract base classes related to import.� )�_bootstrap_external)� machinery� N�_frozen_importlib)�Loader)�BinaryIO�Iterable�Text)�Protocol�runtime_checkablec G sZ |D ](}| � |� td ur*ztt|j�}W n ty$ tt|j�}Y nw | � |� qd S �N)�registerr �getattr�__name__�AttributeError�_frozen_importlib_external)Zabstract_clsZclasses�clsZ frozen_cls� r �4/opt/alt/python310/lib64/python3.10/importlib/abc.py� _register s � ��r c @ s( e Zd ZdZdd� Zejddd��ZdS )�Findera< Legacy abstract base class for import finders. It may be subclassed for compatibility with legacy third party reimplementations of the import system. Otherwise, finder implementations should derive from the more specific MetaPathFinder or PathEntryFinder ABCs. Deprecated since Python 3.3 c C s t �dt� d S )Nzqthe Finder ABC is deprecated and slated for removal in Python 3.12; use MetaPathFinder or PathEntryFinder instead��warnings�warn�DeprecationWarning��selfr r r �__init__, s �zFinder.__init__Nc C s t �dt� dS )z�An abstract method that should find a module. The fullname is a str and the optional path is a str or None. Returns a Loader object or None. z�importlib.abc.Finder along with its find_module() method are deprecated and slated for removal in Python 3.12; use MetaPathFinder.find_spec() or PathEntryFinder.find_spec() insteadNr )r �fullname�pathr r r �find_module2 s �zFinder.find_moduler )r � __module__�__qualname__�__doc__r �abc�abstractmethodr r r r r r s r )� metaclassc @ s e Zd ZdZdd� Zdd� ZdS )�MetaPathFinderz8Abstract base class for import finders on sys.meta_path.c C s<