#NEWLINE# def get_hash( frompath , topath ) : #NEWLINE# #INDENT# from_hash = sha1_of_file ( frompath ) #NEWLINE# to_hash = ( sha1_of_file ( topath ) if os . path . exists ( topath ) else None ) #NEWLINE# return ( from_hash , to_hash )