usr/lib/python2.7/site-packages/pip/exceptions.pyc000064400000030240147205223130016077 0ustar00 abc@@sdZddlmZddlmZmZmZddlmZde fdYZ de fdYZ d e fd YZ d e fd YZ d e fdYZde fdYZde fdYZde fdYZde fdYZde fdYZde fdYZde fdYZde fdYZdefd YZd!efd"YZd#efd$YZd%efd&YZd'efd(YZd)e fd*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.pyR stRequirementsFileParseErrorcB@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;eZdZdZdZdZdZdZRS(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@sg}|jjddxJt|jdD]3\}}|j|j|jd|Dq2W|r|dj|SdS(NtkeycS@s|jS(N(torder(te((s2/usr/lib/python2.7/site-packages/pip/exceptions.pytAtcS@s|jS(N(t __class__(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRBRcs@s|]}|jVqdS(N(tbody(t.0R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pys Dss (RtsortRRtheadtextendtjoin(Rtlinestclst errors_of_cls((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt__str__?s"cC@s t|jS(N(tboolR(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt __nonzero__HscC@s |jS(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@s5eZdZdZdZdZdZdZRS(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|jS(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|jfS(Ns%s %s(R"R(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR(nscC@s|jrt|jSdS(sReturn 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.pyR2st HashMissingcB@s,eZdZdZdZdZdZRS(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(t gotten_hash(RR4((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRscC@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.pyRs  (RRRRR"RR(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyR3s  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@s5eZdZdZdZdZdZdZRS(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. isTHESE 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.pyRs cC@sd|j|jfS(Ns %s: %s(R-t_hash_comparison(R((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyRs c@sd}g}xjt|jD]Y\}}|||jfd|D|jd|j|jdqWdj|S(sE Return a comparison of actual and expected hash values. Example:: Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde or 123451234512345123451234512345123451234512345 Got bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef cS@st|gtdS(Ns or(RR(t hash_name((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyt hash_then_orsc3@s%|]}dt|fVqdS(s Expected %s %sN(tnext(R R(tprefix(s2/usr/lib/python2.7/site-packages/pip/exceptions.pys 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.pyREsN(Rt __future__Rt itertoolsRRRtpip._vendor.sixRt ExceptionRR R R R R RRRRRRR,R1R2R3R:R;RE(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyts,,  $ 8