|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /usr/lib/python3.8/importlib/__pycache__/ |
Upload File : |
U
��pd@% � @ s� d dl Z d dlZddlmZ d dlmZmZ d dlm Z d dl
mZ d dlm
Z
mZ d dlmZ d d lmZ d d
lmZmZmZmZmZ d dlmZ d dlmZmZ d d
lmZ dddddddddg Zee ef Z!ee e j"f Z#ed�dd�Z$e d�dd�Z%eeej& d�dd�Z'dd � Z(e!e#ed!�d"d�Z)d-e!e#e e ed%�d&d�Z*e!e#e+d!�d'd�Z,d.e!e#e e e d%�d(d�Z-ee!e#ee d!�d)d��Z.e!e e/d*�d+d�Z0e!ee d�d,d�Z1dS )/� N� )�abc)�contextmanager�suppress)�
import_module)�ResourceLoader)�BytesIO�
TextIOWrapper)�Path)�
ModuleType)�Iterable�Iterator�Optional�Set�Union)�cast)�BinaryIO�TextIO)�ZipImportError�Package�Resource�contents�is_resource�open_binary� open_text�path�read_binary� read_text)�returnc C s\ t | d�r0| jjdkr*td�| jj���qX| S n(t| �}|jjdkrTtd�| ���n|S dS )z�Take a package name or module object and return the module.
If a name, the module is imported. If the passed or imported module
object is not a package, raise an exception.
�__spec__Nz{!r} is not a package)�hasattrr �submodule_search_locations� TypeError�format�namer )�package�module� r'