#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# if ( not self ) : #NEWLINE# #INDENT# return ( '%s()' % ( self . __class__ . __name__ , ) ) #NEWLINE# #UNINDENT# s = json . dumps ( self , cls = CustomEncoder , indent = 4 ) #NEWLINE# transformations = [ ( '"<' , '<' ) , ( '>"' , '>' ) , ( 'null' , 'None' ) ] #NEWLINE# for ( old_pattern , new_pattern ) in transformations : #NEWLINE# #INDENT# s = s . replace ( old_pattern , new_pattern ) #NEWLINE# #UNINDENT# return s