MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/self/root/proc/2/root/usr/lib/python2.4/site-packages/setuptools/archive_util.pyc
mò
Èk8Hc@sÄdZdddddddgZdkZdkZdkZdkZd	klZd
kl	Z	de	fd„ƒYZ
d„Zedd
„Z
ed„Zed„Zed„ZeeefZdS(s/Utilities for extracting common archive formatstunpack_archivetunpack_zipfiletunpack_tarfiletdefault_filtertUnrecognizedFormattextraction_driverstunpack_directoryN(sensure_directory(sDistutilsErrorcBstZdZRS(s#Couldn't recognize the archive type(t__name__t
__module__t__doc__(((t;/usr/lib/python2.4/site-packages/setuptools/archive_util.pyR
scCs|S(s@The default progress/filter callback; returns True for all filesN(tdst(tsrcR((R
RscCs]xV|ptD]7}y||||ƒWntj
o
qqXdSqWtd|ƒ‚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(tdriversRtdrivertfilenametextract_dirtprogress_filterR(RRRR
R((R
R*sc
CsMtii|ƒptd|fƒ‚nh|d|f<}xti|ƒD]ö\}	}}||	\}}xD|D]<}||dtii||ƒf|tii|	|ƒ<quWx|D]…}||}tii||ƒ}
||||
ƒ}
|
pq¼nt|
ƒtii|	|ƒ}ti||
ƒti||
ƒq¼WqOWdS(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(tostpathtisdirRRRtpathstwalktbasetdirstfilesRRtdtjointftnamettargetRtensure_directorytshutiltcopyfiletcopystat(
RRRRRRRRRRR RR((R
RSs*:

c	Cs6ti|ƒptd|fƒ‚nti|ƒ}zîxç|iƒD]Ù}|i}|i	dƒp
d|joqFnt
ii||idƒŒ}|||ƒ}|pqFn|idƒot|ƒqFt|ƒ|i|iƒ}t|dƒ}z|i|ƒWd|iƒ~XqFWWd|iƒXdS(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..twbN(tzipfilet
is_zipfileRRtZipFiletztinfolisttinfoRt
startswithRRRRtsplitR RtendswithR!treadtdatatopenRtwritetclose(	RRRR+RRR0R)R ((R
R|s4
	

cCs(yti|ƒ}Wn)tij
otd|fƒ‚nXz×d„|_xÀ|D]¸}|iƒp
|i	ƒo˜|i
}|idƒozd|jomti
i||idƒŒ}|||ƒ}|o5|itiƒo|d }n|i||ƒq	q
qUqUWtSWd|iƒXdS(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 filecGsdS(N(tNone(targs((R
t<lambda>µsRs..iÿÿÿÿN(ttarfileR1RttarobjtTarErrorRtchowntmembertisfileRRR,RRRRR-RRR.tsept_extract_membertTrueR3(RRRR;RRR8((R
R¥s*	 (R	t__all__R&R7RR"t
pkg_resourcesR!tdistutils.errorstDistutilsErrorRRR4RRRRR(R@RR&RR7R!RRRRR"RRCR((R
t?s$

	)))#