#NEWLINE# def format( self , object , context , maxlevels , level ) : #NEWLINE# #INDENT# '\n        Format an item in the result.\n        Could be a dictionary key, value, etc..\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return PrettyPrinter . format ( self , object , context , maxlevels , level ) #NEWLINE# #UNINDENT# except HANDLED_EXCEPTIONS as e : #NEWLINE# #INDENT# return ( _format_exception ( e ) , True , False )