#NEWLINE# def deserializeFromUndo( self , data ) : #NEWLINE# #INDENT# from cPickle import loads #NEWLINE# import zlib #NEWLINE# packed = data [ 'packed' ] #NEWLINE# data = data [ 'data' ] #NEWLINE# if packed : #NEWLINE# #INDENT# data = zlib . decompress ( data ) #NEWLINE# data = loads ( data ) #NEWLINE# #UNINDENT# self . holdNotifications ( ) #NEWLINE# self . loadDeserializedDataFromUndo ( data [ 'serializedData' ] ) #NEWLINE# self . loadDeserializedCustomDataFromUndo ( data [ 'customData' ] ) #NEWLINE# self . releaseHeldNotifications ( )