#NEWLINE# def load_asset( self , fname ) : #NEWLINE# #INDENT# ' Get the asset corresponding to the given name.\n        \n        Parameters:\n            fname (str): the (relative) filename for the asset.\n        Returns:\n            asset (bytes): the asset content.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# content = self . _assets [ self ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise IndexError ( ( 'Asset %r not known.' % fname ) ) #NEWLINE# #UNINDENT# if lookslikeafilename ( content ) : #NEWLINE# #INDENT# return self . _cache_get ( content ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return content