£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
B
    Re3                 @   s   d dl mZ d dlZd dlZd dlZd dlmZ d dlmZm	Z	 d dl
mZmZ d dlmZmZ d dlmZ erd dlmZ d d	lmZ eeZG d
d deZdd ZdS )    )absolute_importN)Command)ERRORSUCCESS)FAVORITE_HASHSTRONG_HASHES)read_chunkswrite_output)MYPY_CHECK_RUNNING)Values)Listc               @   s(   e Zd ZdZdZdZdd Zdd ZdS )	HashCommandz
    Compute a hash of a local package archive.

    These can be used with --hash in a requirements file to do repeatable
    installs.
    z%prog [options] <file> ...Tc             C   s:   | j jdddtdtddtd | jd| j  d S )	Nz-az--algorithm	algorithmstorez$The hash algorithm to use: one of {}z, )destchoicesactiondefaulthelpr   )cmd_opts
add_optionr   r   formatjoinparserinsert_option_group)self r   /builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/hash.pyadd_options   s    zHashCommand.add_optionsc             C   sB   |s| j tj tS |j}x |D ]}td||t|| q"W tS )Nz%s:
--hash=%s:%s)	r   print_usagesysstderrr   r   r	   _hash_of_filer   )r   optionsargsr   pathr   r   r   run+   s    
zHashCommand.runN)__name__
__module____qualname____doc__usageignore_require_venvr   r&   r   r   r   r   r      s
   r   c          	   C   sD   t | d,}t|}xt|D ]}|| q W W dQ R X | S )z!Return the hash digest of a file.rbN)openhashlibnewr   update	hexdigest)r%   r   archivehashchunkr   r   r   r"   8   s
    
r"   )
__future__r   r/   loggingr    pip._internal.cli.base_commandr   pip._internal.cli.status_codesr   r   pip._internal.utils.hashesr   r   pip._internal.utils.miscr   r	   pip._internal.utils.typingr
   optparser   typingr   	getLoggerr'   loggerr   r"   r   r   r   r   <module>   s   
$