§
    u”j�  ã                   ó¶   — d dl Z d dlZd dlZd dlm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  ej        e¦  «        Z G d„ de¦  «        Zd	ed
edefd„ZdS )é    N)ÚValues)ÚCommand)ÚERRORÚSUCCESS)ÚFAVORITE_HASHÚSTRONG_HASHES)Úread_chunksÚwrite_outputc                   óB   — e Zd ZdZdZdZd
d„Zdedee	         de
f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> ...TÚreturnNc                 óò   — | j                              dddt          dt          d                     d                     t          ¦  «        ¦  «        ¬¦  «         | 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)Úselfs    új/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/pip/_internal/commands/hash.pyÚadd_optionszHashCommand.add_options   sw   € ØŒ× Ò ØØØÝ!ØÝ!Ø7×>Ò>Ø—	’	�-Ñ(Ô(ñô ð 	!ñ 
	
ô 
	
ð 
	
ð 	Œ×'Ò'¨¨4¬=Ñ9Ô9Ð9Ð9Ð9ó    ÚoptionsÚargsc           
      óÂ   — |s+| j                              t          j        ¦  «         t          S |j        }|D ]"}t          d||t          ||¦  «        ¦  «         Œ#t          S )Nz%s:
--hash=%s:%s)	r   Úprint_usageÚsysÚstderrr   r   r
   Ú_hash_of_filer   )r   r    r!   r   Úpaths        r   ÚrunzHashCommand.run'   so   € Øð 	ØŒK×#Ò#¥C¤JÑ/Ô/Ð/ÝˆLàÔ%ˆ	Øð 	ð 	ˆDÝØ# T¨9µmÀDÈ)Ñ6TÔ6Tñô ð ð õ ˆr   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚusageÚignore_require_venvr   r   ÚlistÚstrÚintr(   © r   r   r   r      sl   € € € € € ðð ð )€EØÐð:ð :ð :ð :ð
˜6ð 
¨¨c¬ð 
°sð 
ð 
ð 
ð 
ð 
ð 
r   r   r'   r   r   c                 óò   — t          | d¦  «        5 }t          j        |¦  «        }t          |¦  «        D ]}|                     |¦  «         Œ	 ddd¦  «         n# 1 swxY w Y   |                     ¦   «         S )z!Return the hash digest of a file.ÚrbN)ÚopenÚhashlibÚnewr	   ÚupdateÚ	hexdigest)r'   r   ÚarchiveÚhashÚchunks        r   r&   r&   4   s¶   € å	ˆd�DÑ	Ô	ð ˜WÝŒ{˜9Ñ%Ô%ˆÝ  Ñ)Ô)ð 	ð 	ˆEØ�KŠK˜ÑÔÐÐð	ðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ð �>Š>ÑÔÐs   ‘<AÁAÁ!A)r6   Úloggingr$   Úoptparser   Úpip._internal.cli.base_commandr   Úpip._internal.cli.status_codesr   r   Úpip._internal.utils.hashesr   r   Úpip._internal.utils.miscr	   r
   Ú	getLoggerr)   Úloggerr   r0   r&   r2   r   r   ú<module>rE      sü   ðØ €€€Ø €€€Ø 
€
€
€
Ø Ð Ð Ð Ð Ð à 2Ð 2Ð 2Ð 2Ð 2Ð 2Ø 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø CÐ CÐ CÐ CÐ CÐ CÐ CÐ CØ >Ð >Ð >Ð >Ð >Ð >Ð >Ð >à	ˆÔ	˜8Ñ	$Ô	$€ð#ð #ð #ð #ð #�'ñ #ô #ð #ðL˜ð ¨ð °ð ð ð ð ð ð r   