/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands
Edit: /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyc (2565B)
Ñò
¥Wc @@ s¬ d d k l Z d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l
Z
d d k l Z l
Z
e i e ƒ Z d e f d „ ƒ YZ d „ Z d S(
i ( t absolute_importN( t Command( t ERROR( t read_chunks( t
FAVORITE_HASHt
STRONG_HASHESt HashCommandc B@ s2 e Z d Z d Z d Z d Z d „ Z d „ Z RS( sŽ
Compute a hash of a local package archive.
These can be used with --hash in a requirements file to do repeatable
installs.
t hashs %prog [options]
...s# Compute hashes of package archives.c O@ sq t t | ƒ i | | Ž | i i d d d d d t d d d t d d
d i t ƒ ƒ| i i d | i ƒ d S(
Ns -as --algorithmt destt algorithmt choicest actiont storet defaultt helps$ The hash algorithm to use: one of %ss , i (
t superR t __init__t cmd_optst
add_optionR R t joint parsert insert_option_group( t selft argst kw( ( sI /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyR s c C@ s\ | p | i i t i ƒ t S| i } x- | D]% } t i d | | t | | ƒ ƒ q/ Wd S( Ns %s:
--hash=%s:%s( R t print_usaget syst stderrR R t loggert infot
_hash_of_file( R t optionsR R t path( ( sI /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyt run( s ( t __name__t
__module__t __doc__t namet usaget summaryR R! ( ( ( sI /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyR s c C@ si t | d ƒ i i ƒ } z@ | ~ } t i | ƒ } x! t | ƒ D] } | i | ƒ qB WWd QX| i ƒ S( s! Return the hash digest of a file.t rbN( t opent __exit__t __enter__t hashlibt newR t updatet hexdigest( R R t _[1]t archiveR t chunk( ( sI /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyR 3 s &
( t
__future__R R, t loggingR t pip.basecommandR t pip.status_codesR t pip.utilsR t pip.utils.hashesR R t getLoggerR" R R R ( ( ( sI /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/commands/hash.pyt s #