File "filesystem.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/filesystem.pyc
File size: 8.43 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


Rec@sddlZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZddlmZmZerdd	lmZmZmZmZmZd
efdYZndZd
ZdZ e	dZ!e
ddddZ"erte"dZ#ne"ej#Z#dZ$dZ%dZ&dZ'dZ(dZ)dZ*dS(iN(tcontextmanager(tNamedTemporaryFile(tretry(tPY2(tget_path_uid(tformat_size(tMYPY_CHECK_RUNNINGtcast(tAnytBinaryIOtIteratortListtUniontNamedTemporaryFileResultcBseZedZRS(cCsdS(N((tself((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/filesystem.pytfiles(t__name__t
__module__tpropertyR(((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/filesystem.pyR
scCstjdksttdr#tStjj|s;td}x||krtjj	|rtj
dkryt|}Wntk
rt
SX|dkStj|tjSqD|tjj|}}qDWt
S(Ntwin32tgeteuidi(tsystplatformthasattrtostTruetpathtisabstAssertionErrortNonetlexistsRRtOSErrortFalsetaccesstW_OKtdirname(Rtprevioustpath_uid((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/filesystem.pytcheck_path_owners

cCsytj||Wnyttfk
rx\||gD]N}yt|}Wntk
r`q7X|r7tjdjtq7q7WnXdS(sWrap shutil.copy2() but map errors copying socket files to
    SpecialFileError as expected.

    See also https://bugs.python.org/issue37700.
    s`{f}` is a socketN(tshutiltcopy2RtIOErrort	is_sockettSpecialFileErrortformattlocals(tsrctdesttftis_socket_file((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/filesystem.pytcopy2_fixed;s
cCstjtj|jS(N(tstattS_ISSOCKRtlstattst_mode(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/filesystem.pyR*Tsc
kstdtdtjj|dtjj|dd|F}td|}z	|VWd|jjtj	|jj
XWdQXdS(s%Return a file-like object pointing to a tmp file next to path.

    The file is created securely and is ensured to be written to disk
    after the context reaches its end.

    kwargs will be passed to tempfile.NamedTemporaryFile to control
    the way the temporary file will be opened.
    tdeletetdirtprefixtsuffixs.tmpR
N(RR RRR#tbasenameRRtflushtfsynctfileno(RtkwargsR0tresult((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/filesystem.pytadjacent_tmp_fileYs		
tstop_max_delayit
wait_fixedicCsIytj||Wn.tk
rDtj|tj||nXdS(N(RtrenameRtremove(R.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/filesystem.pytreplacevs


cCsmx>tjj|s@tjj|}||kr7Pn|}qWtjdkrctj|tjSt|S(sgCheck if a directory is writable.

    Uses os.access() on POSIX, tries creating files on Windows.
    tposix(RRtisdirR#tnameR!R"t_test_writable_dir_win(Rtparent((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/filesystem.pyttest_writable_dirs
csd}dxtdD]}|djfdtdD}tjj||}y'tj|tjtjBtjB}WnVtk
r}|j	t	j
krqn|j	t	jks|j	t	jkrt
SqXtj|tj|tSqWtddS(Nt(accesstest_deleteme_fishfingers_custard_t$abcdefghijklmnopqrstuvwxyz0123456789i
tc3s|]}tjVqdS(N(trandomtchoice(t.0t_(talphabet(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/filesystem.pys	<genexpr>sis3Unexpected condition testing for writable directory(trangetjoinRRtopentO_RDWRtO_CREATtO_EXCLRterrnotEEXISTtEPERMtEACCESR tclosetunlinkRtEnvironmentError(RR;RSRIRtfdte((RTs/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/filesystem.pyRJs$)'$

cs\g}xOtj|D]>\}}tj||}|jfd|DqW|S(sReturns a list of absolute paths of files beneath path, recursively,
    with filenames which match the UNIX-style shell glob pattern.c3s$|]}tjj|VqdS(N(RRRV(RRR0(troot(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/filesystem.pys	<genexpr>s(Rtwalktfnmatchtfiltertextend(RtpatternR@RStfilestmatches((Rds/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/filesystem.pyt
find_filess
!cCs&tjj|rdStjj|S(Ni(RRtislinktgetsize(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/filesystem.pyt	file_sizescCstt|S(N(RRo(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/filesystem.pytformat_file_sizescCscd}xVtj|D]E\}}}x3|D]+}tjj||}|t|7}q,WqW|S(Ng(RReRRVRo(RtsizeRdt_dirsRjtfilenamet	file_path((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/filesystem.pytdirectory_sizes
cCstt|S(N(RRu(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/filesystem.pytformat_directory_sizes(+R[RfRtos.pathRPR'R3Rt
contextlibRttempfileRtpip._vendor.retryingRtpip._vendor.sixRtpip._internal.utils.compatRtpip._internal.utils.miscRtpip._internal.utils.typingRRttypingRR	R
RRR
R&R2R*RAt_replace_retryRFRLRJRlRoRpRuRv(((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/filesystem.pyt<module>s@(			
		$