404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.222.115.188: ~ $
3

�Pf=�@s~ddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZm
Z
eje�ZGdd�de�Zd	d
�ZdS)�)�absolute_importN)�Command)�ERROR)�read_chunks)�
FAVORITE_HASH�
STRONG_HASHEScs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�HashCommandz�
    Compute a hash of a local package archive.

    These can be used with --hash in a requirements file to do repeatable
    installs.

    �hashz%prog [options] <file> ...z#Compute hashes of package archives.c
sJtt|�j||�|jjdddtdtddjt�d�|jj	d|j�dS)	Nz-az--algorithm�	algorithmZstorez$The hash algorithm to use: one of %sz, )�dest�choices�action�default�helpr)
�superr�__init__Zcmd_optsZ
add_optionrr�join�parserZinsert_option_group)�self�args�kw)�	__class__��/usr/lib/python3.6/hash.pyrszHashCommand.__init__cCsD|s|jjtj�tS|j}x"|D]}tjd||t||��q"WdS)Nz%s:
--hash=%s:%s)	rZprint_usage�sys�stderrrr
�logger�info�
_hash_of_file)rZoptionsrr
�pathrrr�run(s
zHashCommand.run)
�__name__�
__module__�__qualname__�__doc__�nameZusageZsummaryrr �
__classcell__rr)rrrsrc
CsDt|d��,}tj|�}xt|�D]}|j|�q WWdQRX|j�S)z!Return the hash digest of a file.�rbN)�open�hashlib�newr�updateZ	hexdigest)rr
�archiver	�chunkrrrr3s

r)Z
__future__rr)ZloggingrZpip.basecommandrZpip.status_codesrZ	pip.utilsrZpip.utils.hashesrrZ	getLoggerr!rrrrrrr�<module>s
#

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.96 KB 0644
__init__.cpython-36.pyc File 1.96 KB 0644
check.cpython-36.opt-1.pyc File 1.22 KB 0644
check.cpython-36.pyc File 1.22 KB 0644
completion.cpython-36.opt-1.pyc File 2.52 KB 0644
completion.cpython-36.pyc File 2.52 KB 0644
download.cpython-36.opt-1.pyc File 5.24 KB 0644
download.cpython-36.pyc File 5.24 KB 0644
freeze.cpython-36.opt-1.pyc File 2.5 KB 0644
freeze.cpython-36.pyc File 2.5 KB 0644
hash.cpython-36.opt-1.pyc File 1.86 KB 0644
hash.cpython-36.pyc File 1.86 KB 0644
help.cpython-36.opt-1.pyc File 1.03 KB 0644
help.cpython-36.pyc File 1.03 KB 0644
install.cpython-36.opt-1.pyc File 10.19 KB 0644
install.cpython-36.pyc File 10.19 KB 0644
list.cpython-36.opt-1.pyc File 9.4 KB 0644
list.cpython-36.pyc File 9.44 KB 0644
search.cpython-36.opt-1.pyc File 4.04 KB 0644
search.cpython-36.pyc File 4.04 KB 0644
show.cpython-36.opt-1.pyc File 5.19 KB 0644
show.cpython-36.pyc File 5.19 KB 0644
uninstall.cpython-36.opt-1.pyc File 2.48 KB 0644
uninstall.cpython-36.pyc File 2.48 KB 0644
wheel.cpython-36.opt-1.pyc File 5.27 KB 0644
wheel.cpython-36.pyc File 5.27 KB 0644