#NEWLINE# def blob( tree , pathname ) : #NEWLINE# #INDENT# '\n    Return the SHA of the blob by the given name in the given tree.\n    ' #NEWLINE# for ( mode , type , sha , pathname2 ) in ls_tree ( tree ) : #NEWLINE# #INDENT# if ( pathname == pathname2 ) : #NEWLINE# #INDENT# return sha #NEWLINE# #UNINDENT# #UNINDENT# return None