Your IP : 18.220.43.27


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pyc

�
�Rec@@s�ddlmZddlZddlZddlZddlmZddlmZm	Z	ddl
mZmZddl
mZmZddlmZer�ddlmZdd	lmZneje�Zd
efd��YZd�ZdS(
i(tabsolute_importN(tCommand(tERRORtSUCCESS(t
FAVORITE_HASHt
STRONG_HASHES(tread_chunkstwrite_output(tMYPY_CHECK_RUNNING(tValues(tListtHashCommandcB@s,eZdZdZeZd�Zd�ZRS(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] <file> ...cC@s]|jjdddddtdddtd	d
jdjt���|jjd|j�dS(
Ns-as--algorithmtdestt	algorithmtchoicestactiontstoretdefaultthelps$The hash algorithm to use: one of {}s, i(tcmd_optst
add_optionRRtformattjointparsertinsert_option_group(tself((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pytadd_optionss		cC@sW|s|jjtj�tS|j}x*|D]"}td||t||��q-WtS(Ns%s:
--hash=%s:%s(	Rtprint_usagetsyststderrRR
Rt
_hash_of_fileR(RtoptionstargsR
tpath((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pytrun+s	
(t__name__t
__module__t__doc__tusagetTruetignore_require_venvRR"(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pyRs
	cC@sUt|d��:}tj|�}x!t|�D]}|j|�q.WWdQX|j�S(s!Return the hash digest of a file.trbN(topenthashlibtnewRtupdatet	hexdigest(R!R
tarchivethashtchunk((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pyR8s
(t
__future__RR+tloggingRtpip._internal.cli.base_commandRtpip._internal.cli.status_codesRRtpip._internal.utils.hashesRRtpip._internal.utils.miscRRtpip._internal.utils.typingRtoptparseR	ttypingR
t	getLoggerR#tloggerRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/hash.pyt<module>s$

?>