#NEWLINE# def compute_filename_hash( key_filenames ) : #NEWLINE# #INDENT# sha_hash = hashlib . sha1 ( ) #NEWLINE# if isinstance ( key_filenames , list ) : #NEWLINE# #INDENT# for key in key_filenames : #NEWLINE# #INDENT# sha_hash . update ( key . encode ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# sha_hash . update ( key_filenames . encode ( ) ) #NEWLINE# #UNINDENT# return sha_hash . hexdigest ( )