ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyc

�
x�_c@@s,dZddlmZddlmZmZmZddlmZddl	m
Z
e
rddlmZm
Z
mZmZmZddlmZddlmZmZdd	lmZdd
lmZddlmZer�ddlmZqdd
lmZndefd��YZdefd��YZ defd��YZ!defd��YZ"defd��YZ#de!fd��YZ$de!fd��YZ%defd��YZ&defd��YZ'd efd!��YZ(d"efd#��YZ)d$efd%��YZ*d&efd'��YZ+d(e!fd)��YZ,d*e!fd+��YZ-d,e!fd-��YZ.d.e!fd/��YZ/d0e!fd1��YZ0d2e0fd3��YZ1d4e0fd5��YZ2d6e0fd7��YZ3d8e0fd9��YZ4d:e0fd;��YZ5d<e!fd=��YZ6d>e fd?��YZ7d@S(As"Exceptions used throughout packagei(tabsolute_import(tchaintgroupbytrepeat(t	iteritems(tMYPY_CHECK_RUNNING(tAnytOptionaltListtDicttText(tDistribution(tResponsetRequest(tPY3(tconfigparser(tInstallRequirement(t_Hash(t_hashtPipErrorcB@seZdZRS(sBase pip exception(t__name__t
__module__t__doc__(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRstConfigurationErrorcB@seZdZRS(s"General exception in configuration(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRstInstallationErrorcB@seZdZRS(s%General exception during installation(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR#stUninstallationErrorcB@seZdZRS(s'General exception during uninstallation(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR'stNoneMetadataErrorcB@s eZdZd�Zd�ZRS(s
    Raised when accessing "METADATA" or "PKG-INFO" metadata for a
    pip._vendor.pkg_resources.Distribution object and
    `dist.has_metadata('METADATA')` returns True but
    `dist.get_metadata('METADATA')` returns None (and similarly for
    "PKG-INFO").
    cC@s||_||_dS(s�
        :param dist: A Distribution object.
        :param metadata_name: The name of the metadata being accessed
            (can be "METADATA" or "PKG-INFO").
        N(tdistt
metadata_name(tselfRR((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt__init__4s	cC@sdj|j|j�S(Ns+None {} metadata found for distribution: {}(tformatRR(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt__str__>s(RRRRR (((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR+s	
tDistributionNotFoundcB@seZdZRS(sCRaised when a distribution cannot be found to satisfy a requirement(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR!IstRequirementsFileParseErrorcB@seZdZRS(sDRaised when a general error occurs parsing a requirements file line.(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR"MstBestVersionAlreadyInstalledcB@seZdZRS(sNRaised when the most up-to-date version of a package is already
    installed.(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR#Qst
BadCommandcB@seZdZRS(s0Raised when virtualenv or a command is not found(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR$VstCommandErrorcB@seZdZRS(s7Raised when there is an error in command-line arguments(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR%ZstSubProcessErrorcB@seZdZRS(sPRaised when there is an error raised while executing a
    command in subprocess(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR&^stPreviousBuildDirErrorcB@seZdZRS(s:Raised when there's a previous conflicting build directory(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR'cstNetworkConnectionErrorcB@s&eZdZddd�Zd�ZRS(sHTTP connection errorcC@su||_||_||_|jdk	rU|jrUt|d�rU|jj|_ntt|�j|||�dS(sc
        Initialize NetworkConnectionError with  `request` and `response`
        objects.
        trequestN(tresponseR)t	error_msgtNonethasattrtsuperR(R(RR+R*R)((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRjs			cC@s
t|j�S(N(tstrR+(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR ysN(RRRR,RR (((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR(gstInvalidWheelFilenamecB@seZdZRS(sInvalid wheel filename.(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR0~stUnsupportedWheelcB@seZdZRS(sUnsupported wheel.(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR1�stMetadataInconsistentcB@s eZdZd�Zd�ZRS(s�Built metadata contains inconsistent information.

    This is raised when the metadata contains values (e.g. name and version)
    that do not match the information previously obtained from sdist filename
    or user-supplied ``#egg=`` value.
    cC@s||_||_||_dS(N(tireqtfieldtbuilt(RR3R4R5((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR�s		cC@sdj|j|j|j�S(Ns/Requested {} has different {} in metadata: {!r}(RR3R4R5(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR �s(RRRRR (((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR2�s	t
HashErrorscB@s;eZdZd�Zd�Zd�Zd�Zd�ZRS(s:Multiple HashError instances rolled into one for reportingcC@s
g|_dS(N(terrors(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR�scC@s|jj|�dS(N(R7tappend(Rterror((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR8�scC@s�g}|jjdd��xJt|jd��D]3\}}|j|j�|jd�|D��q2W|r|dj|�SdS(NtkeycS@s|jS(N(torder(te((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt<lambda>�scS@s|jS(N(t	__class__(R<((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR=�scs@s|]}|j�VqdS(N(tbody(t.0R<((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pys	<genexpr>�ss
t(R7tsortRR8theadtextendtjoin(Rtlinestclst
errors_of_cls((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR �s"
cC@s
t|j�S(N(tboolR7(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt__nonzero__�scC@s
|j�S(N(RJ(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt__bool__�s(RRRRR8R RJRK(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR6�s				t	HashErrorcB@s;eZdZdZdZdZd�Zd�Zd�Z	RS(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.

    RAcC@sdj|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
            its link already populated by the resolver's _populate_link().

        s    {}(Rt_requirement_name(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR?�scC@sdj|j|j��S(Ns{}
{}(RRCR?(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR �scC@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(treqR/(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRM�sN(
RRRR,RNRCR;R?R RM(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRL�s	
	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:(RRRR;RC(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRO�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:(RRRR;RC(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRP�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(RRR((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRscC@skddlm}d}|jrO|jjr7|jjnt|jdd�}ndj|p^d||j�S(Ni(t
FAVORITE_HASHRNs    {} --hash={}:{}sunknown package(tpip._internal.utils.hashesRSR,RNt
original_linktgetattrRRR(RRStpackage((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR?s	(RRRR;RCRR?(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRQ�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:(RRRR;RC(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRX"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(RRZR[((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR:s	cC@sdj|j�|j��S(Ns
    {}:
{}(RRMt_hash_comparison(R((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR?Esc@s�d�}g}xit|j�D]X\}}||��|j�fd�|D��|jdj|j|j���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((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pythash_then_orVsc3@s'|]}djt��|�VqdS(s        Expected {} {}N(Rtnext(R@R<(tprefix(sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pys	<genexpr>_ss             Got        {}
s
(RRZRDR8RR[t	hexdigestRE(RR^RFR]t	expecteds((R`sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR\Js	(RRRR;RCRR?R\(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRY+s		tUnsupportedPythonVersioncB@seZdZRS(sMUnsupported python version according to Requires-Python package
    metadata.(RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRcfst!ConfigurationFileCouldNotBeLoadedcB@s)eZdZdddd�Zd�ZRS(s=When there are errors while loading a configuration file
    scould not be loadedcC@s5tt|�j|�||_||_||_dS(N(R.RdRtreasontfnameR9(RReRfR9((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRos		cC@s^|jdk	r$dj|j�}n'|jdk	s9t�dj|j�}dj|j|�S(Ns in {}.s.
{}
sConfiguration file {}{}(RfR,RR9tAssertionErrorRe(Rtmessage_part((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyR vs
N(RRRR,RR (((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyRdksN(8Rt
__future__Rt	itertoolsRRRtpip._vendor.sixRtpip._internal.utils.typingRttypingRRRR	R
tpip._vendor.pkg_resourcesRtpip._vendor.requests.modelsRR
Rtpip._vendor.six.movesRtpip._internal.req.req_installRthashlibRRt	ExceptionRRRRRR!R"R#R$R%R&R'R(R0R1R2R6RLRORPRQRXRYRcRd(((sI/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/exceptions.pyt<module>sN(0		'	;

Zerion Mini Shell 1.0