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~ddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m 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] ...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) rZ print_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Ús     #