/usr/lib/python2.7/site-packages/pip
NameSizeModeActions
commands/-0755rm
compat/-0755rm
models/-0755rm
operations/-0755rm
req/-0755rm
utils/-0755rm
vcs/-0755rm
_vendor/-0755rm
basecommand.py119100644editdlrm
basecommand.pyc89350644editdlrm
basecommand.pyo89350644editdlrm
baseparser.py104650644editdlrm
baseparser.pyc107450644editdlrm
baseparser.pyo107090644editdlrm
cmdoptions.py164740644editdlrm
cmdoptions.pyc156260644editdlrm
cmdoptions.pyo156260644editdlrm
download.py328470644editdlrm
download.pyc259400644editdlrm
download.pyo258140644editdlrm
exceptions.py81210644editdlrm
exceptions.pyc124480644editdlrm
exceptions.pyo124480644editdlrm
index.py399500644editdlrm
index.pyc351410644editdlrm
index.pyo350630644editdlrm
locations.py56260644editdlrm
locations.pyc47690644editdlrm
locations.pyo46760644editdlrm
pep425tags.py109800644editdlrm
pep425tags.pyc94790644editdlrm
pep425tags.pyo94790644editdlrm
status_codes.py1560644editdlrm
status_codes.pyc3930644editdlrm
status_codes.pyo3930644editdlrm
wheel.py322870644editdlrm
wheel.pyc254330644editdlrm
wheel.pyo252180644editdlrm
__init__.py119340644editdlrm
__init__.pyc95750644editdlrm
__init__.pyo93920644editdlrm
__main__.py5840644editdlrm
__main__.pyc4840644editdlrm
__main__.pyo4840644editdlrm
Edit: /usr/lib/python2.7/site-packages/pip/exceptions.pyo (12448B)
σ •abc@@sθdZddlmZddlmZmZmZddlmZde fd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ d e fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZdefd „ƒ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;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.pytAtcS@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 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„st HashMissingcB@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(t gotten_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 κ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 R R R RRRRRRR,R1R2R3R:R;RE(((s2/usr/lib/python2.7/site-packages/pip/exceptions.pyts,,  $ 8