#NEWLINE# @ classmethod #NEWLINE# def dump( cls , type , exc ) : #NEWLINE# #INDENT# "\n        Always return a dumped (pickled) type and exc. If exc can't be pickled,\n        wrap it in UnpickleableException first.\n        " #NEWLINE# try : #NEWLINE# #INDENT# return ( pickle . dumps ( type ) , pickle . dumps ( exc ) ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return cls . dump ( cls , cls ( repr ( exc ) ) )