#NEWLINE# def _from_json( self , datastring ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return jsonutils . loads ( msg ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# msg = _ ( 'Cannot understand JSON' ) #NEWLINE# raise exception . MalformedResponseBody ( reason = msg )