Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.145.14.131
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : _common.pyc
�
���cc@@s5ddlmZddlZddlZddlZddlZddlZddlmZm	Z	m
Z
mZer�ddl
mZmZmZddlmZeejefZnd�Zd�Zd	�Zd
�Zd�Zd�Zejd
d��Ze
d��Zeje�ejd���Z dS(i(tabsolute_importNi(tPathtFileNotFoundErrortsingledispatchtpackage_spec(tUniontAnytOptional(tResourceReadercC@stt|��S(s3
    Get a Traversable resource from a package
    (tfrom_packagetget_package(tpackage((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pytfilesscC@sFt|�}tjj|�\}}|rBtdj|���n|S(s�Normalize a path by ensuring it is a string.

    If the resulting string contains path separators, an exception is raised.
    s{!r} must be only a file name(tstrtostpathtsplitt
ValueErrortformat(Rtstr_pathtparentt	file_name((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pytnormalize_paths
cC@s;|j}t|jdd�}|dkr.dS||j�S(s?
    Return the package's loader if it's a ResourceReader.
    tget_resource_readerN(t__spec__tgetattrtloadertNonetname(Rtspectreader((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyR(s

	cC@s#t|tj�r|Stj|�S(N(t
isinstancettypest
ModuleTypet	importlibt
import_module(tcand((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pytresolve9scC@s=t|�}t|�jdkr9tdj|���n|S(s�Take a package name or module object and return the module.

    Raise an exception if the resolved module is not a package.
    s{!r} is not a packageN(R%Rtsubmodule_search_locationsRt	TypeErrorR(Rtresolved((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyR
AscC@s+t|�}|jj|j�}|j�S(s=
    Return a Traversable object for the given package.

    (RRRRR(RRR((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyR	Mstcc@swtjd|�\}}z2tj||��tj|�~t|�VWdytj|�Wntk
rqnXXdS(Ntsuffix(ttempfiletmkstempRtwritetcloseRtremoveR(RR*tfdtraw_path((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyt	_tempfileWs

cC@st|jd|j�S(su
    Given a Traversable object, return that object as a
    path on the local file system in a context manager.
    R*(R2t
read_bytesR(R((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pytas_fileiscc@s	|VdS(s7
    Degenerate behavior for pathlib.Path objects.
    N((R((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyt_rs(!t
__future__RRR+t
contextlibR R"t_compatRRRRtFalsettypingRRRtabcRR!R
tPackageRRRR%R
R	tcontextmanagerR2R4tregisterR5(((s?/usr/lib/python2.7/site-packages/importlib_resources/_common.pyt<module>s*"		
				
	
© 2025 GrazzMean