/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network
NameSizeModeActions
__pycache__/-0755rm
auth.py116520644editdlrm
auth.pyc87730644editdlrm
auth.pyo85540644editdlrm
cache.py23290644editdlrm
cache.pyc36060644editdlrm
cache.pyo35150644editdlrm
download.py51510644editdlrm
download.pyc59490644editdlrm
download.pyo59000644editdlrm
lazy_wheel.py81380644editdlrm
lazy_wheel.pyc102100644editdlrm
lazy_wheel.pyo101450644editdlrm
session.py152080644editdlrm
session.pyc119570644editdlrm
session.pyo119570644editdlrm
utils.py41720644editdlrm
utils.pyc18070644editdlrm
utils.pyo18070644editdlrm
xmlrpc.py18820644editdlrm
xmlrpc.pyc23340644editdlrm
xmlrpc.pyo22960644editdlrm
__init__.py500644editdlrm
__init__.pyc2320644editdlrm
__init__.pyo2320644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyc (10210B)
Ñò j“Rec@s\dZddgZddklZlZddklZddklZddk l Z l Z ddk l Z dd klZdd klZlZlZdd klZdd klZeobdd klZlZlZlZlZlZddkl Z ddk l!Z!ddk"l#Z#nde$fd„ƒYZ%d„Z&de'fd„ƒYZ(dS(sLazy ZIP over HTTPtHTTPRangeRequestUnsupportedtdist_from_wheel_urliÿÿÿÿ(t bisect_leftt bisect_right(tcontextmanager(tNamedTemporaryFile(t BadZipfiletZipFile(tCONTENT_CHUNK_SIZE(trange(tHEADERStraise_for_statustresponse_chunks(tMYPY_CHECK_RUNNING(t$pkg_resources_distribution_for_wheel(tAnytDicttIteratortListtOptionaltTuple(t Distribution(tResponse(t PipSessioncBseZRS((t__name__t __module__(((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyRscCsOt||ƒiiƒ}z,|~}t|ƒ}t|||iƒSWdQXdS(s%Return a pkg_resources.Distribution from the given wheel URL. This uses HTTP range requests to only fetch the potion of the wheel containing metadata, just enough for the object to be constructed. If such requests are not supported, HTTPRangeRequestUnsupported is raised. N(tLazyZipOverHTTPt__exit__t __enter__RRtname(Rturltsessiont_[1]twheeltzip_file((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR"s & RcBsàeZdZed„Zed„ƒZed„ƒZd„Zd„Z ed„ƒZ dd„Z d „Z d d „Z d „Zdd „Zd„Zd„Zd„Zed„ƒZd„Zed„Zd„Zd„ZRS(sFile-like object mapped to a ZIP file over HTTP. This uses HTTP range requests to lazily fetch the file's content, which is supposed to be fed to ZipFile. If such requests are not supported by the server, raise HTTPRangeRequestUnsupported during initialization. cCsÑ|i|dtƒ}t|ƒ|idjpt‚||||_|_|_t|i dƒ|_ t ƒ|_ |i |i ƒg|_g|_d|i iddƒjotdƒ‚n|iƒdS(NtheadersiÈsContent-Lengthtbytess Accept-Rangestnonesrange request is not supported(theadR R t status_codetAssertionErrort_sessiont_urlt _chunk_sizetintR#t_lengthRt_filettruncatet_leftt_righttgetRt _check_zip(tselfRRt chunk_sizeR&((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyt__init__=s    cCsdS(s!Opening mode, which is always rb.trb((R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pytmodeLscCs |iiS(sPath to the underlying file.(R.R(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyRRscCstS(s9Return whether random access is supported, which is True.(tTrue(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pytseekableXscCs|iiƒdS(sClose the file.N(R.tclose(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR;]scCs |iiS(sWhether the file is closed.(R.tclosed(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR<bsiÿÿÿÿcCs†t||iƒ}|iƒ|i}}|djo|nt|||ƒ}td||ƒ}|i||dƒ|ii|ƒS(säRead up to size bytes from the object and return them. As a convenience, if size is unspecified or -1, all bytes until EOF are returned. Fewer than size bytes may be returned if EOF is reached. ii(tmaxR+ttellR-tmint _downloadR.tread(R4tsizet download_sizetstarttlengthtstop((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyRAhs 'cCstS(s3Return whether the file is readable, which is True.(R9(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pytreadablewsicCs|ii||ƒS(s-Change stream position and return the new absolute position. Seek to offset relative position indicated by whence: * 0: Start of stream (the default). pos should be >= 0; * 1: Current position - pos may be negative; * 2: End of stream - pos usually negative. (R.tseek(R4toffsettwhence((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyRH|s cCs |iiƒS(sReturn the current possition.(R.R>(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR>‡scCs|ii|ƒS(sÌResize the stream to the given size in bytes. If size is unspecified resize to the current position. The current stream position isn't changed. Return the new file size. (R.R/(R4RB((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR/Œs cCstS(s Return False.(tFalse(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pytwritable—scCs|iiƒ|S(N(R.R(R4((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyRœs cGs|ii|ŒS(N(R.R(R4texc((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR¡sccs*|iƒ}z dVWd|i|ƒXdS(syReturn a context manager keeping the position. At the end of the block, seek back to original position. N(R>RH(R4tpos((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyt_stay¥s  c CsŠ|id}xvttd||iƒƒD]Y}|i||ƒ|iƒiiƒz)yt|ƒWnt j onXPWdQXq)WdS(s1Check and download until the file is a valid ZIP.iiN( R-treversedR R+R@RORRRR(R4tendRD((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR3²s cCsK|iƒ}di||ƒ|dtNoneR/RLRRRROR3R RWR`R@(((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyR4s(           N()Rdt__all__tbisectRRt contextlibRttempfileRtzipfileRRtpip._vendor.requests.modelsRtpip._vendor.six.movesR tpip._internal.network.utilsR R R tpip._internal.utils.typingR tpip._internal.utils.wheelRttypingRRRRRRtpip._vendor.pkg_resourcesRRtpip._internal.network.sessionRt ExceptionRRtobjectR(((sQ/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/lazy_wheel.pyts$ .