/usr/lib/python3.6/site-packages/pip/__pycache__
NameSizeModeActions
basecommand.cpython-36.opt-1.pyc71970644editdlrm
basecommand.cpython-36.pyc71970644editdlrm
baseparser.cpython-36.opt-1.pyc92300644editdlrm
baseparser.cpython-36.pyc92580644editdlrm
cmdoptions.cpython-36.opt-1.pyc129160644editdlrm
cmdoptions.cpython-36.pyc129160644editdlrm
download.cpython-36.opt-1.pyc206920644editdlrm
download.cpython-36.pyc208000644editdlrm
exceptions.cpython-36.opt-1.pyc104700644editdlrm
exceptions.cpython-36.pyc104700644editdlrm
index.cpython-36.opt-1.pyc307500644editdlrm
index.cpython-36.pyc308150644editdlrm
locations.cpython-36.opt-1.pyc37830644editdlrm
locations.cpython-36.pyc38560644editdlrm
pep425tags.cpython-36.opt-1.pyc74510644editdlrm
pep425tags.cpython-36.pyc74510644editdlrm
status_codes.cpython-36.opt-1.pyc3250644editdlrm
status_codes.cpython-36.pyc3250644editdlrm
wheel.cpython-36.opt-1.pyc215560644editdlrm
wheel.cpython-36.pyc217420644editdlrm
__init__.cpython-36.opt-1.pyc84840644editdlrm
__init__.cpython-36.pyc86330644editdlrm
__main__.cpython-36.opt-1.pyc3610644editdlrm
__main__.cpython-36.pyc3610644editdlrm
Edit: /usr/lib/python3.6/site-packages/pip/__pycache__/exceptions.cpython-36.pyc (10470B)
3 ÝPf¹ã@sddZddlmZddlmZmZmZddlmZGdd„de ƒZ Gdd„de ƒZ Gd d „d e ƒZ Gd d „d e ƒZ Gd d„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd„de ƒZGdd „d eƒZGd!d"„d"eƒZGd#d$„d$eƒZGd%d&„d&eƒZGd'd(„d(eƒZGd)d*„d*e ƒZd+S),z"Exceptions used throughout packageé)Úabsolute_import)ÚchainÚgroupbyÚrepeat)Ú iteritemsc@seZdZdZdS)ÚPipErrorzBase pip exceptionN)Ú__name__Ú __module__Ú __qualname__Ú__doc__©r r ú /usr/lib/python3.6/exceptions.pyr src@seZdZdZdS)ÚInstallationErrorz%General exception during installationN)rr r r r r r r r src@seZdZdZdS)ÚUninstallationErrorz'General exception during uninstallationN)rr r r r r r r rsrc@seZdZdZdS)ÚDistributionNotFoundzCRaised when a distribution cannot be found to satisfy a requirementN)rr r r r r r r rsrc@seZdZdZdS)ÚRequirementsFileParseErrorzDRaised when a general error occurs parsing a requirements file line.N)rr r r r r r r rsrc@seZdZdZdS)ÚBestVersionAlreadyInstalledzNRaised when the most up-to-date version of a package is already installed.N)rr r r r r r r rsrc@seZdZdZdS)Ú BadCommandz0Raised when virtualenv or a command is not foundN)rr r r r r r r r"src@seZdZdZdS)Ú CommandErrorz7Raised when there is an error in command-line argumentsN)rr r r r r r r r&src@seZdZdZdS)ÚPreviousBuildDirErrorz:Raised when there's a previous conflicting build directoryN)rr r r r r r r r*src@seZdZdZdS)ÚInvalidWheelFilenamezInvalid wheel filename.N)rr r r r r r r r.src@seZdZdZdS)ÚUnsupportedWheelzUnsupported wheel.N)rr r r r r r r r2src@s8eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd S) Ú HashErrorsz:Multiple HashError instances rolled into one for reportingcCs g|_dS)N)Úerrors)Úselfr r r Ú__init__9szHashErrors.__init__cCs|jj|ƒdS)N)rÚappend)rÚerrorr r r r<szHashErrors.appendcCsfg}|jjdd„dxAsz$HashErrors.__str__..)ÚkeycSs|jS)N)Ú __class__)rr r r r Bscss|]}|jƒVqdS)N)Úbody)Ú.0rr r r ú Dsz%HashErrors.__str__..Ú )rÚsortrrÚheadÚextendÚjoin)rÚlinesÚclsZ errors_of_clsr r r Ú__str__?s zHashErrors.__str__cCs t|jƒS)N)Úboolr)rr r r Ú __nonzero__HszHashErrors.__nonzero__cCs|jƒS)N)r/)rr r r Ú__bool__KszHashErrors.__bool__N) rr r r rrr-r/r0r r r r r6s  rc@s0eZdZdZdZdZdd„Zdd„Zdd „ZdS) Ú HashErrora” 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. NÚcCs d|jƒS)a)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 z %s)Ú_requirement_name)rr r r r#bs zHashError.bodycCsd|j|jƒfS)Nz%s %s)r(r#)rr r r r-nszHashError.__str__cCs|jrt|jƒSdS)z¨Return a description of the requirement that triggered me. This default implementation returns long description of the req, with line numbers zunknown package)ÚreqÚstr)rr r r r3qszHashError._requirement_name) rr r r r4r(r#r-r3r r r r r1Os  r1c@seZdZdZdZdZdS)ÚVcsHashUnsupportedzuA hash was provided for a version-control-system-based requirement, but we don't have a method for hashing those.rzlCan't verify hashes for these requirements because we don't have a way to hash version control repositories:N)rr r r rr(r r r r r6{sr6c@seZdZdZdZdZdS)ÚDirectoryUrlHashUnsupportedzuA hash was provided for a version-control-system-based requirement, but we don't have a method for hashing those.ézUCan't verify hashes for these file:// requirements because they point to directories:N)rr r r rr(r r r r r7„sr7c@s(eZdZdZdZdZdd„Zdd„ZdS) Ú HashMissingz2A hash was needed for a requirement but is absent.éawHashes 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.)cCs ||_dS)zq :param gotten_hash: The hash of the (possibly malicious) archive we just downloaded N)Ú gotten_hash)rr;r r r r™szHashMissing.__init__cCsHddlm}d}|jr4|jjr&|jjn t|jddƒ}d|p.hash_then_orc3s|]}dtˆƒ|fVqdS)z Expected %s %sN)Únext)r$r)Úprefixr r r%êsz0HashMismatch._hash_comparison..z Got %s z orr&)rrCr)rrDZ hexdigestr*)rrGr+rFZ expectedsr )rIr rE×s  zHashMismatch._hash_comparisonN) rr r r rr(rr#rEr r r r rAºs  rAc@seZdZdZdS)ÚUnsupportedPythonVersionzMUnsupported python version according to Requires-Python package metadata.N)rr r r r r r r rJòsrJN)r Z __future__rÚ itertoolsrrrZpip._vendor.sixrÚ Exceptionrrrrrrrrrrrrr1r6r7r9r?rArJr r r r Ús,  ,  $ 8