£Á°è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>
3
Pf=                 @   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 d dl	m
Z
 d dlmZmZ ejeZG dd deZd	d
 ZdS )    )absolute_importN)Command)ERROR)read_chunks)FAVORITE_HASHSTRONG_HASHESc                   s4   e Zd ZdZdZdZdZ fddZdd 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] <file> ...z#Compute hashes of package archives.c          
      sJ   t t| j|| | jjdddtdtddjt d | jj	d| j d S )	Nz-az--algorithm	algorithmZstorez$The hash algorithm to use: one of %sz, )destchoicesactiondefaulthelpr   )
superr   __init__Zcmd_optsZ
add_optionr   r   joinparserZinsert_option_group)selfargskw)	__class__ /usr/lib/python3.6/hash.pyr      s    zHashCommand.__init__c             C   sD   |s| j jtj tS |j}x"|D ]}tjd||t|| q"W d S )Nz%s:
--hash=%s:%s)	r   Zprint_usagesysstderrr   r
   loggerinfo_hash_of_file)r   Zoptionsr   r
   pathr   r   r   run(   s    
zHashCommand.run)
__name__
__module____qualname____doc__nameZusageZsummaryr   r    __classcell__r   r   )r   r   r      s   r   c          
   C   sD   t | d,}tj|}xt|D ]}|j| q W W dQ 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)   Zloggingr   Zpip.basecommandr   Zpip.status_codesr   Z	pip.utilsr   Zpip.utils.hashesr   r   Z	getLoggerr!   r   r   r   r   r   r   r   <module>   s   
#