Hacked By AnonymousFox

Current Path : /usr/lib/python2.7/site-packages/pip/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/exceptions.pyo

�
��abc@@s�dZddlmZddlmZmZmZddlmZde	fd��YZ
de
fd��YZd	e
fd
��YZdefd��YZ
d
efd��YZde
fd��YZde
fd��YZde
fd��YZde
fd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd ��YZd!efd"��YZd#efd$��YZd%efd&��YZd'efd(��YZd)efd*��YZd+S(,s"Exceptions used throughout packagei(tabsolute_import(tchaintgroupbytrepeat(t	iteritemstPipErrorcB@seZdZRS(sBase pip exception(t__name__t
__module__t__doc__(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR	stInstallationErrorcB@seZdZRS(s%General exception during installation(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR	
stUninstallationErrorcB@seZdZRS(s'General exception during uninstallation(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR
stDistributionNotFoundcB@seZdZRS(sCRaised when a distribution cannot be found to satisfy a requirement(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRstRequirementsFileParseErrorcB@seZdZRS(sDRaised when a general error occurs parsing a requirements file line.(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRstBestVersionAlreadyInstalledcB@seZdZRS(sNRaised when the most up-to-date version of a package is already
    installed.(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR
st
BadCommandcB@seZdZRS(s0Raised when virtualenv or a command is not found(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR"stCommandErrorcB@seZdZRS(s7Raised when there is an error in command-line arguments(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR&stPreviousBuildDirErrorcB@seZdZRS(s:Raised when there's a previous conflicting build directory(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR*stInvalidWheelFilenamecB@seZdZRS(sInvalid wheel filename.(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR.stUnsupportedWheelcB@seZdZRS(sUnsupported wheel.(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR2st
HashErrorscB@s;eZdZd�Zd�Zd�Zd�Zd�ZRS(s:Multiple HashError instances rolled into one for reportingcC@s
g|_dS(N(terrors(tself((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt__init__9scC@s|jj|�dS(N(Rtappend(Rterror((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR<scC@s�g}|jjdd��xJt|jd��D]3\}}|j|j�|jd�|D��q2W|r|dj|�SdS(NtkeycS@s|jS(N(torder(te((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt<lambda>AtcS@s|jS(N(t	__class__(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRBRcs@s|]}|j�VqdS(N(tbody(t.0R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pys	<genexpr>Dss
(RtsortRRtheadtextendtjoin(Rtlinestclst
errors_of_cls((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt__str__?s"cC@s
t|j�S(N(tboolR(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt__nonzero__HscC@s
|j�S(N(R*(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt__bool__Ks(RRRRRR(R*R+(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR6s					t	HashErrorcB@s5eZdZdZdZd�Zd�Zd�ZRS(s�
    A failure to verify a package against known-good hashes

    :cvar order: An int sorting hash exception classes by difficulty of
        recovery (lower being harder), so the user doesn't bother fretting
        about unpinned packages when he has deeper issues, like VCS
        dependencies, to deal with. Also keeps error reports in a
        deterministic order.
    :cvar head: A section heading for display above potentially many
        exceptions of this kind
    :ivar req: The InstallRequirement that triggered this error. This is
        pasted on after the exception is instantiated, because it's not
        typically available earlier.

    RcC@sd|j�S(s)Return a summary of me for display under the heading.

        This default implementation simply prints a description of the
        triggering requirement.

        :param req: The InstallRequirement that provoked this error, with
            populate_link() having already been called

        s    %s(t_requirement_name(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRbs
cC@sd|j|j�fS(Ns%s
%s(R"R(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR(nscC@s|jrt|j�SdS(s�Return a description of the requirement that triggered me.

        This default implementation returns long description of the req, with
        line numbers

        sunknown package(treqtstr(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR-qsN(	RRRtNoneR.R"RR(R-(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR,Os		tVcsHashUnsupportedcB@seZdZdZdZRS(suA hash was provided for a version-control-system-based requirement, but
    we don't have a method for hashing those.islCan't verify hashes for these requirements because we don't have a way to hash version control repositories:(RRRRR"(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR1{stDirectoryUrlHashUnsupportedcB@seZdZdZdZRS(suA hash was provided for a version-control-system-based requirement, but
    we don't have a method for hashing those.isUCan't verify hashes for these file:// requirements because they point to directories:(RRRRR"(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR2�stHashMissingcB@s,eZdZdZdZd�Zd�ZRS(s2A hash was needed for a requirement but is absent.iswHashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)cC@s
||_dS(sq
        :param gotten_hash: The hash of the (possibly malicious) archive we
            just downloaded
        N(tgotten_hash(RR4((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR�scC@siddlm}d}|jrO|jjr7|jjnt|jdd�}nd|p[d||jfS(Ni(t
FAVORITE_HASHR.s    %s --hash=%s:%ssunknown package(tpip.utils.hashesR5R0R.t
original_linktgetattrR4(RR5tpackage((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR�s	(RRRRR"RR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR3�s
	tHashUnpinnedcB@seZdZdZdZRS(sPA requirement had a hash specified but was not pinned to a specific
    version.isaIn --require-hashes mode, all requirements must have their versions pinned with ==. These do not:(RRRRR"(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR:�stHashMismatchcB@s5eZdZdZdZd�Zd�Zd�ZRS(s�
    Distribution file hash values don't match.

    :ivar package_name: The name of the package that triggered the hash
        mismatch. Feel free to write to this after the exception is raise to
        improve its error message.

    is�THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.cC@s||_||_dS(s�
        :param allowed: A dict of algorithm names pointing to lists of allowed
            hex digests
        :param gots: A dict of algorithm names pointing to hashes we
            actually got from the files under suspicion
        N(tallowedtgots(RR<R=((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR�s	cC@sd|j�|j�fS(Ns
    %s:
%s(R-t_hash_comparison(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR�sc@s�d�}g}xjt|j�D]Y\}}||��|j�fd�|D��|jd|j|j��d�qWdj|�S(sE
        Return a comparison of actual and expected hash values.

        Example::

               Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde
                            or 123451234512345123451234512345123451234512345
                    Got        bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef

        cS@st|gtd��S(Ns    or(RR(t	hash_name((s2/usr/lib/python2.7/site-packages/pip/exceptions.pythash_then_or�sc3@s%|]}dt��|fVqdS(s        Expected %s %sN(tnext(R R(tprefix(s2/usr/lib/python2.7/site-packages/pip/exceptions.pys	<genexpr>�ss             Got        %s
s    ors
(RR<R#RR=t	hexdigestR$(RR@R%R?t	expecteds((RBs2/usr/lib/python2.7/site-packages/pip/exceptions.pyR>�s		
(RRRRR"RRR>(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR;�s	
	tUnsupportedPythonVersioncB@seZdZRS(sMUnsupported python version according to Requires-Python package
    metadata.(RRR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRE�sN(Rt
__future__Rt	itertoolsRRRtpip._vendor.sixRt	ExceptionRR	R
RRR
RRRRRRR,R1R2R3R:R;RE(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt<module>s,,		$	8

Hacked By AnonymousFox1.0, Coded By AnonymousFox