$13 GRAYBYTE WORDPRESS FILE MANAGER $75

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/

HOME
Current File : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils//unpacking.pyc
�
�Rec@@s�dZddlmZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
mZmZddlmZddlmZer�ddlmZmZmZmZmZdd	lmZneje�Zee
ZyddlZee7ZWne k
rDej!d
�nXyddl"Z"ee7ZWne k
rej!d�nXd�Z#d
�Z$d�Z%d�Z&d�Z'd�Z(e)d�Z*d�Z+dd�Z-dS(sUtilities related archives.
i(tabsolute_importN(tInstallationError(tBZ2_EXTENSIONStTAR_EXTENSIONSt
XZ_EXTENSIONStZIP_EXTENSIONS(t
ensure_dir(tMYPY_CHECK_RUNNING(tIterabletListtOptionaltTexttUnion(tZipInfosbz2 module is not availableslzma module is not availablecC@s tjd�}tj|�|S(sBGet the current umask which involves having to set it temporarily.i(tostumask(tmask((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pyt
current_umask/s
cC@s�|jd�jd�}d|krjd|krN|jd�|jd�ksZd|krj|jdd�Sd|kr�|jdd�S|dgSdS(Nt/s\it(tlstriptfindtsplit(tpath((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pytsplit_leading_dir7s*cC@s\d}xO|D]G}t|�\}}|s/tS|dkrD|}q
||kr
tSq
WtS(syReturns true if all the paths have the same leading path name
    (i.e., everything is in one subdirectory in an archive)N(tNoneRtFalsetTrue(tpathst
common_prefixRtprefixtrest((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pythas_leading_dirGs
	cC@sFtjj|�}tjj|�}tjj||g�}||kS(sL
    Return true if the absolute path of target is within the directory
    (RRtabspathtcommonprefix(t	directoryttargett
abs_directoryt
abs_targetR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pytis_within_directoryWscC@s tj|dt�@dB�dS(sx
    Make file present at path have execute for user/group/world
    (chmod +x) is no-op on windows per python docs
    i�iIN(RtchmodR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pyt2set_extracted_file_to_default_mode_plus_executablecscC@s0|jd?}t|o,tj|�o,|d@�S(NiiI(t
external_attrtbooltstattS_ISREG(tinfotmode((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pytzip_item_is_executablels
c
C@s�t|�t|d�}zatj|dt�}t|j��oF|}x-|j�D]}|j}|}|r�t	|�d}nt
jj||�}t
jj
|�}	t||�s�d}
t|
j|||���n|jd�s�|jd�r	t|�qVt|	�|j|�}z,t|d��}tj||�WdQXWd|j�t|�rtt|�nXqVWWd|j�XdS(	s�
    Unzip the file (with path `filename`) to the destination `location`.  All
    files are written based on system defaults and umask (i.e. permissions are
    not preserved), except that regular file members with any execute
    permissions (user, group, or world) have "chmod +x" applied after being
    written. Note that for windows, any execute changes using os.chmod are
    no-ops per the python docs.
    trbt
allowZip64isQThe zip file ({}) has a file ({}) trying to install outside target directory ({})Rs\twbN(RtopentzipfiletZipFileRR tnamelisttinfolisttfilenameRRRtjointdirnameR'RtformattendswithtshutiltcopyfileobjtcloseR0R)(
R9tlocationtflattentzipfptziptleadingR.tnametfntdirtmessagetfptdestfp((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pyt
unzip_filets4

	


cC@s�t|�|j�jd�s4|j�jd�r=d}np|j�jt�r[d}nR|j�jt�ryd}n4|j�jd�r�d}ntjd|�d	}tj||�}z�t	g|j
�D]}|j^q��}x�|j
�D]�}|j}|rt|�d
}nt
jj||�}t||�sgd}t|j|||���n|j�r�t|�q�|j�r�y|j||�Wq�tk
r�}	tjd||j|	�q�q�Xq�y|j|�}
Wn5ttfk
r}	tjd||j|	�q�nXtt
jj|��|
dk	sHt�t|d
��}tj|
|�WdQX|
j�|j ||�|j!d@r�t"|�q�q�WWd|j�XdS(s�
    Untar the file (with path `filename`) to the destination `location`.
    All files are written based on system defaults and umask (i.e. permissions
    are not preserved), except that regular file members with any execute
    permissions (user, group, or world) have "chmod +x" applied after being
    written.  Note that for windows, any execute changes using os.chmod are
    no-ops per the python docs.
    s.gzs.tgzsr:gzsr:bz2sr:xzs.tartrs-Cannot determine compression type for file %ssr:*isQThe tar file ({}) has a file ({}) trying to install outside target directory ({})s/In the tar file %s the member %s is invalid: %sR3NiI(#RtlowerR=RRtloggertwarningttarfileR4R t
getmembersRFRRRR:R'RR<tisdirtissymt_extract_membert	ExceptiontextractfiletKeyErrortAttributeErrorR;RtAssertionErrorR>R?R@tutimeR/R)(R9RAR/ttartmemberRERGRRItexcRJRK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pyt
untar_file�sf

*				
%	



cC@s�tjj|�}|dksB|j�jt�sBtj|�rbt||d|jd��ns|dks�t	j
|�s�|j�jttt
�r�t||�n+tjd|||�tdj|���dS(Nsapplication/zipRBs.whlsapplication/x-gzipsZCannot unpack file %s (downloaded from %s, content-type: %s); cannot detect archive formats%Cannot determine archive format of {}(RRtrealpathRNR=RR5t
is_zipfileRLRQt
is_tarfileRRRR_ROtcriticalRR<(R9RAtcontent_type((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pytunpack_file�s$
(.t__doc__t
__future__RtloggingRR>R,RQR5tpip._internal.exceptionsRtpip._internal.utils.filetypesRRRRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingRR	R
RRR
t	getLoggert__name__ROtSUPPORTED_EXTENSIONStbz2tImportErrortdebugtlzmaRRR R'R)R0RRLR_RRe(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/unpacking.pyt<module>sF"(


							/	V


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.py
0 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
0.221 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
appdirs.py
1.317 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
appdirs.pyc
2.016 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.py
9.267 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compat.pyc
9.653 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compatibility_tags.py
5.312 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
compatibility_tags.pyc
4.909 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
datetime.py
0.288 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
datetime.pyc
0.731 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
deprecation.py
3.24 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
deprecation.pyc
3.805 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
direct_url_helpers.py
4.257 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
direct_url_helpers.pyc
3.61 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
distutils_args.py
1.318 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
distutils_args.pyc
1.726 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
encoding.py
1.254 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
encoding.pyc
1.731 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
entrypoints.py
1.19 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
entrypoints.pyc
1.589 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filesystem.py
6.78 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filesystem.pyc
8.431 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filetypes.py
0.558 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
filetypes.pyc
0.834 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
glibc.py
3.22 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
glibc.pyc
2.493 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hashes.py
4.568 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
hashes.pyc
6.646 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
inject_securetransport.py
0.791 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
inject_securetransport.pyc
1.189 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
logging.py
12.786 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
logging.pyc
13.289 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
misc.py
27.667 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
misc.pyc
37.103 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.py
1.173 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
models.pyc
3.218 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packaging.py
2.964 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
packaging.pyc
3.572 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
parallel.py
3.324 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
parallel.pyc
3.921 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pkg_resources.py
1.225 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pkg_resources.pyc
2.939 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
setuptools_build.py
4.939 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
setuptools_build.pyc
4.254 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
subprocess.py
9.691 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
subprocess.pyc
7.313 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
temp_dir.py
8.182 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
temp_dir.pyc
9.96 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
typing.py
1.368 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
typing.pyc
1.644 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
unpacking.py
9.266 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
unpacking.pyc
8.435 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
urls.py
1.491 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
urls.pyc
2.187 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
virtualenv.py
3.619 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
virtualenv.pyc
4.597 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel.py
7.132 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel.pyc
7.997 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF