#NEWLINE# def get_blob_or_tree( self , commit , path ) : #NEWLINE# #INDENT# 'Return the Git tree or blob object for `path` at `commit`.' #NEWLINE# try : #NEWLINE# #INDENT# ( mode , oid ) = tree_lookup_path ( self . __getitem__ , path . tree , encode_for_git ( path ) ) #NEWLINE# #UNINDENT# except NotTreeError : #NEWLINE# #INDENT# raise KeyError #NEWLINE# #UNINDENT# return self [ oid ]