Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
ÝPf= ã @ s~ d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
d dlmZm
Z
ejeƒZG dd„ deƒZd d
„ ZdS )é )Úabsolute_importN)ÚCommand)ÚERROR)Úread_chunks)Ú
FAVORITE_HASHÚ
STRONG_HASHESc s4 e Zd ZdZdZdZdZ‡ 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] ...z#Compute hashes of package archives.c
sJ t t| ƒj||Ž | jjdddtdtddjtƒ d� | jj d| jƒ d S ) Nz-az--algorithmÚ algorithmZstorez$The hash algorithm to use: one of %sz, )ÚdestÚchoicesÚactionÚdefaultÚhelpr )
Úsuperr Ú__init__Zcmd_optsZ
add_optionr r ÚjoinÚparserZinsert_option_group)ÚselfÚargsÚkw)Ú __class__© ú/usr/lib/python3.6/hash.pyr s zHashCommand.__init__c C sD |s| j jtjƒ tS |j}x"|D ]}tjd||t||ƒƒ q"W d S )Nz%s:
--hash=%s:%s) r Zprint_usageÚsysÚstderrr r
ÚloggerÚinfoÚ
_hash_of_file)r Zoptionsr r
Úpathr r r Úrun( s
zHashCommand.run)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameZusageZsummaryr r Ú
__classcell__r r )r r r s r c
C sD t | dƒ�,}tj|ƒ}xt|ƒD ]}|j|ƒ q W W dQ R X |jƒ S )z!Return the hash digest of a file.ÚrbN)ÚopenÚhashlibÚnewr ÚupdateZ hexdigest)r r
Úarchiver Úchunkr r r r 3 s
r )Z
__future__r r) Zloggingr Zpip.basecommandr Zpip.status_codesr Z pip.utilsr Zpip.utils.hashesr r Z getLoggerr! r r r r r r r Ú s
#