#NEWLINE# def get_md5_from_blob( self , blobkey ) : #NEWLINE# #INDENT# 'Get md5 hexdigest of the blobfile with blobkey.' #NEWLINE# try : #NEWLINE# #INDENT# f = self . blob_storage . OpenBlob ( blobkey ) #NEWLINE# file_md5 = hashlib . md5 ( ) #NEWLINE# file_md5 . update ( f . read ( ) ) #NEWLINE# return file_md5 . hexdigest ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# f . close ( )