File "hashes.pyc"

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


Rec@@s#ddlmZddlZddlmZmZmZddlmZm	Z	m
Z
ddlmZddl
mZerddlmZmZmZmZmZddlmZerdd	lmZqdd
lmZndZddd
gZdefdYZdefdYZdS(i(tabsolute_importN(t	iteritemstiterkeyst
itervalues(tHashMismatchtHashMissingtInstallationError(tread_chunks(tMYPY_CHECK_RUNNING(tDicttListtBinaryIOtNoReturntIterator(tPY3(t_Hash(t_hashtsha256tsha384tsha512tHashescB@sqeZdZddZdZedZdZdZ	dZ
dZdZd	Z
d
ZRS(saA wrapper that builds multiple hashes at once and checks them against
    known-good values

    cC@s|dkrin||_dS(so
        :param hashes: A dict of algorithm names pointing to lists of allowed
            hex digests
        N(tNonet_allowed(tselfthashes((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/hashes.pyt__init__)scC@st|tstS|s|S|s'|Si}xbt|jD]Q\}}||jkr^q=ng|D]}||j|kre|^qe||<q=Wt|S(N(t
isinstanceRtNotImplementedRR(Rtothertnewtalgtvaluestv((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/hashes.pyt__and__1s4cC@std|jjDS(Ncs@s|]}t|VqdS(N(tlen(t.0tdigests((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/hashes.pys	<genexpr>Hs(tsumRR(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/hashes.pytdigest_countEscC@s||jj|gkS(s/Return whether the given hex digest is allowed.(Rtget(Rt	hash_namet
hex_digest((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/hashes.pytis_hash_allowedJscC@si}x]t|jD]L}ytj|||<Wqttfk
ratdj|qXqWx2|D]*}x!t|D]}|j	|qWqmWx7t
|D])\}}|j|j|krdSqW|j|dS(sCheck good hashes against ones built from iterable of chunks of
        data.

        Raise HashMismatch if none match.

        sUnknown hash name: {}N(
RRthashlibRt
ValueErrort	TypeErrorRtformatRtupdateRt	hexdigestt_raise(RtchunkstgotsR(tchunkthashtgot((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/hashes.pytcheck_against_chunksSs
cC@st|j|dS(N(RR(RR3((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/hashes.pyR1mscC@s|jt|S(saCheck good hashes against a file-like object

        Raise HashMismatch if none match.

        (R7R(Rtfile((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/hashes.pytcheck_against_fileqscC@s)t|d}|j|SWdQXdS(Ntrb(topenR9(RtpathR8((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/hashes.pytcheck_against_pathzscC@s
t|jS(s,Return whether I know any known-good hashes.(tboolR(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/hashes.pyt__nonzero__scC@s
|jS(N(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/hashes.pyt__bool__sN(t__name__t
__module__t__doc__RRR!tpropertyR&R*R7R1R9R=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/hashes.pyR$s									t
MissingHashescB@s eZdZdZdZRS(sA workalike for Hashes used when we're missing a hash for a requirement

    It computes the actual hash of the requirement and raises a HashMissing
    exception showing it to the user.

    cC@s$tt|jdigt6dS(s!Don't offer the ``hashes`` kwarg.RN(tsuperRERt
FAVORITE_HASH(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/hashes.pyRscC@st|tjdS(N(RRGR0(RR3((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/hashes.pyR1s(RARBRCRR1(((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/hashes.pyREs	(t
__future__RR+tpip._vendor.sixRRRtpip._internal.exceptionsRRRtpip._internal.utils.miscRtpip._internal.utils.typingRttypingR	R
RRR
RRRRGt
STRONG_HASHEStobjectRRE(((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/hashes.pyt<module>s(e