Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/setuptools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/setuptools/archive_util.pyo
�
�fc@s�dZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddddd	d
dgZd	efd��YZd
�Z
e
dd�Ze
d�Ze
d�Ze
d�ZeeefZdS(s/Utilities for extracting common archive formatsi����N(tDistutilsError(tensure_directorytunpack_archivetunpack_zipfiletunpack_tarfiletdefault_filtertUnrecognizedFormattextraction_driverstunpack_directorycBseZdZRS(s#Couldn't recognize the archive type(t__name__t
__module__t__doc__(((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRscCs|S(s@The default progress/filter callback; returns True for all files((tsrctdst((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRscCsZxS|ptD]5}y||||�Wntk
r=q
q
XdSq
Wtd|��dS(s�Unpack `filename` to `extract_dir`, or raise ``UnrecognizedFormat``

    `progress_filter` is a function taking two arguments: a source path
    internal to the archive ('/'-separated), and a filesystem path where it
    will be extracted.  The callback must return the desired extract path
    (which may be the same as the one passed in), or else ``None`` to skip
    that file or directory.  The callback can thus be used to report on the
    progress of the extraction, as well as to filter the items extracted or
    alter their extraction paths.

    `drivers`, if supplied, must be a non-empty sequence of functions with the
    same signature as this function (minus the `drivers` argument), that raise
    ``UnrecognizedFormat`` if they do not support extracting the designated
    archive type.  The `drivers` are tried in sequence until one is found that
    does not raise an error, or until all are exhausted (in which case
    ``UnrecognizedFormat`` is raised).  If you do not supply a sequence of
    drivers, the module's ``extraction_drivers`` constant will be used, which
    means that ``unpack_zipfile`` and ``unpack_tarfile`` will be tried, in that
    order.
    Ns!Not a recognized archive type: %s(RR(tfilenametextract_dirtprogress_filtertdriverstdriver((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRs
cCs:tjj|�s%td|��nid|f|6}x�tj|�D]�\}}}||\}}xD|D]<}	||	dtjj||	�f|tjj||	�<qnWx�|D]y}
tjj||
�}|||
|�}|s�q�nt|�tjj||
�}
tj|
|�tj	|
|�q�WqHWdS(s�"Unpack" a directory, using the same interface as for archives

    Raises ``UnrecognizedFormat`` if `filename` is not a directory
    s%s is not a directorytt/N(
tostpathtisdirRtwalktjoinRtshutiltcopyfiletcopystat(RRRtpathstbasetdirstfilesRR
tdtfttarget((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyR?s"
:

c
CsGtj|�s%td|f��ntj|��
}x|j�D]�}|j}|jd�sDd|jd�kr}qDntj	j
||jd��}|||�}|s�qDn|jd�r�t|�nAt|�|j
|j�}t|d��}|j|�WdQX|jd?}	|	rDtj||	�qDqDWWdQXdS(s�Unpack zip `filename` to `extract_dir`

    Raises ``UnrecognizedFormat`` if `filename` is not a zipfile (as determined
    by ``zipfile.is_zipfile()``).  See ``unpack_archive()`` for an explanation
    of the `progress_filter` argument.
    s%s is not a zip fileRs..twbNi(tzipfilet
is_zipfileRtZipFiletinfolistRt
startswithtsplitRRRtendswithRtreadtopentwritet
external_attrtchmod(
RRRtztinfotnameR#tdataR"tunix_attributes((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRZs(	$


c

Cs�ytj|�}Wn'tjk
r<td|f��nXtj|���d�|_xk|D]c}|j}|jd�r`d|j	d�kr`t
jj||j	d��}x�|dk	r6|j�s�|j�r6|j}|j�r$tj|j�}tj||�}tj|�}n|j|�}q�W|dk	r�|j�s[|j�r�|||�}	|	r�|	jt
j�r�|	d }	ny|j||	�Wq�tjk
r�q�Xq�q�q`q`WtSWdQXdS(s�Unpack tar/tar.gz/tar.bz2 `filename` to `extract_dir`

    Raises ``UnrecognizedFormat`` if `filename` is not a tarfile (as determined
    by ``tarfile.open()``).  See ``unpack_archive()`` for an explanation
    of the `progress_filter` argument.
    s/%s is not a compressed or uncompressed tar filecWsdS(N(tNone(targs((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyt<lambda>�RRs..i����N(ttarfileR-tTarErrorRt
contextlibtclosingtchownR3R)R*RRRR6tislnktissymtlinknamet	posixpathtdirnametnormpatht
_getmembertisfileRR+tsept_extract_membertExtractErrortTrue(
RRRttarobjtmemberR3t
prelim_dsttlinkpathRt	final_dst((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyRs8
	%'	$
(RR%R9RRRAR;tdistutils.errorsRt
pkg_resourcesRt__all__RRR6RRRRR(((s;/usr/lib/python2.7/site-packages/setuptools/archive_util.pyt<module>s$	"%.
Name
Size
Permissions
Options
_vendor
--
drwxr-xr-x
command
--
drwxr-xr-x
extern
--
drwxr-xr-x
__init__.py
5.566 KB
-rw-r--r--
__init__.pyc
7.446 KB
-rw-r--r--
__init__.pyo
7.446 KB
-rw-r--r--
archive_util.py
6.438 KB
-rw-r--r--
archive_util.pyc
5.998 KB
-rw-r--r--
archive_util.pyo
5.998 KB
-rw-r--r--
build_meta.py
5.538 KB
-rw-r--r--
build_meta.pyc
6.483 KB
-rw-r--r--
build_meta.pyo
6.369 KB
-rw-r--r--
config.py
15.997 KB
-rw-r--r--
config.pyc
16.492 KB
-rw-r--r--
config.pyo
16.492 KB
-rw-r--r--
dep_util.py
0.913 KB
-rw-r--r--
dep_util.pyc
0.942 KB
-rw-r--r--
dep_util.pyo
0.942 KB
-rw-r--r--
depends.py
5.7 KB
-rw-r--r--
depends.pyc
6.331 KB
-rw-r--r--
depends.pyo
6.331 KB
-rw-r--r--
dist.py
41.518 KB
-rw-r--r--
dist.pyc
40.529 KB
-rw-r--r--
dist.pyo
40.473 KB
-rw-r--r--
extension.py
1.688 KB
-rw-r--r--
extension.pyc
2.361 KB
-rw-r--r--
extension.pyo
2.361 KB
-rw-r--r--
glibc.py
3.072 KB
-rw-r--r--
glibc.pyc
1.914 KB
-rw-r--r--
glibc.pyo
1.914 KB
-rw-r--r--
glob.py
5.085 KB
-rw-r--r--
glob.pyc
4.705 KB
-rw-r--r--
glob.pyo
4.645 KB
-rw-r--r--
launch.py
0.769 KB
-rw-r--r--
launch.pyc
0.977 KB
-rw-r--r--
launch.pyo
0.977 KB
-rw-r--r--
lib2to3_ex.py
1.966 KB
-rw-r--r--
lib2to3_ex.pyc
2.934 KB
-rw-r--r--
lib2to3_ex.pyo
2.934 KB
-rw-r--r--
monkey.py
5.653 KB
-rw-r--r--
monkey.pyc
6.194 KB
-rw-r--r--
monkey.pyo
6.194 KB
-rw-r--r--
msvc.py
39.919 KB
-rw-r--r--
msvc.pyc
39.406 KB
-rw-r--r--
msvc.pyo
39.406 KB
-rw-r--r--
namespaces.py
3.124 KB
-rw-r--r--
namespaces.pyc
4.915 KB
-rw-r--r--
namespaces.pyo
4.915 KB
-rw-r--r--
package_index.py
39.212 KB
-rw-r--r--
package_index.pyc
38.812 KB
-rw-r--r--
package_index.pyo
38.812 KB
-rw-r--r--
pep425tags.py
10.627 KB
-rw-r--r--
pep425tags.pyc
9.115 KB
-rw-r--r--
pep425tags.pyo
9.115 KB
-rw-r--r--
py27compat.py
0.523 KB
-rw-r--r--
py27compat.pyc
1.021 KB
-rw-r--r--
py27compat.pyo
1.021 KB
-rw-r--r--
py31compat.py
1.164 KB
-rw-r--r--
py31compat.pyc
1.854 KB
-rw-r--r--
py31compat.pyo
1.854 KB
-rw-r--r--
py33compat.py
1.154 KB
-rw-r--r--
py33compat.pyc
1.68 KB
-rw-r--r--
py33compat.pyo
1.68 KB
-rw-r--r--
py36compat.py
2.823 KB
-rw-r--r--
py36compat.pyc
2.795 KB
-rw-r--r--
py36compat.pyo
2.795 KB
-rw-r--r--
sandbox.py
13.941 KB
-rw-r--r--
sandbox.pyc
18.457 KB
-rw-r--r--
sandbox.pyo
18.457 KB
-rw-r--r--
script (dev).tmpl
0.196 KB
-rw-r--r--
script.tmpl
0.135 KB
-rw-r--r--
site-patch.py
2.253 KB
-rw-r--r--
site-patch.pyc
1.698 KB
-rw-r--r--
site-patch.pyo
1.698 KB
-rw-r--r--
ssl_support.py
8.293 KB
-rw-r--r--
ssl_support.pyc
8.316 KB
-rw-r--r--
ssl_support.pyo
8.316 KB
-rw-r--r--
unicode_utils.py
0.973 KB
-rw-r--r--
unicode_utils.pyc
1.438 KB
-rw-r--r--
unicode_utils.pyo
1.438 KB
-rw-r--r--
version.py
0.141 KB
-rw-r--r--
version.pyc
0.314 KB
-rw-r--r--
version.pyo
0.314 KB
-rw-r--r--
wheel.py
7.061 KB
-rw-r--r--
wheel.pyc
7.171 KB
-rw-r--r--
wheel.pyo
7.138 KB
-rw-r--r--
windows_support.py
0.697 KB
-rw-r--r--
windows_support.pyc
1.244 KB
-rw-r--r--
windows_support.pyo
1.244 KB
-rw-r--r--