/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands
Edit: /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyo (2793B)
Ρς
iRec @@ sσ d d k l Z d d k Z d d k Z d d k Z d d k l Z d d k l Z l Z d d k
l Z l Z d d k
l Z l Z d d k l Z e o$ d d k l Z d d k l Z n e i e Z d
e f d YZ d Z d S(
i ( t absolute_importN( t Command( t ERRORt SUCCESS( t
FAVORITE_HASHt
STRONG_HASHES( t read_chunkst write_output( t MYPY_CHECK_RUNNING( t Values( t Listt HashCommandc B@ s, e Z d Z d Z e Z d Z d Z RS( s
Compute a hash of a local package archive.
These can be used with --hash in a requirements file to do repeatable
installs.
s %prog [options]
...c C@ s] | i i d d d d d t d d d t d d
i d i t | i i d | i d S(
Ns -as --algorithmt destt algorithmt choicest actiont storet defaultt helps$ The hash algorithm to use: one of {}s , i ( t cmd_optst
add_optionR R t formatt joint parsert insert_option_group( t self( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyt add_options s c C@ sY | p | i i t i t S| i } x* | D]" } t d | | t | | q/ Wt S( Ns %s:
--hash=%s:%s( R t print_usaget syst stderrR R
R t
_hash_of_fileR ( R t optionst argsR
t path( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyt run+ s ( t __name__t
__module__t __doc__t usaget Truet ignore_require_venvR R" ( ( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyR s
c C@ si t | d i i } z@ | ~ } t i | } x! t | D] } | i | qB WWd QX| i S( s! Return the hash digest of a file.t rbN( t opent __exit__t __enter__t hashlibt newR t updatet hexdigest( R! R
t _[1]t archivet hasht chunk( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyR 8 s &
( t
__future__R R- t loggingR t pip._internal.cli.base_commandR t pip._internal.cli.status_codesR R t pip._internal.utils.hashesR R t pip._internal.utils.miscR R t pip._internal.utils.typingR t optparseR t typingR
t getLoggerR# t loggerR R ( ( ( sL /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyt s $