#NEWLINE# def __get_pure_state__( self ) : #NEWLINE# #INDENT# d = super ( VTKDataSource , self ) . __get_pure_state__ ( ) #NEWLINE# for name in ( '_assign_attribute' , '_first' , '_observer' ) : #NEWLINE# #INDENT# d . pop ( name , None ) #NEWLINE# #UNINDENT# for name in ( 'point_scalars' , 'point_vectors' , 'point_tensors' , 'cell_scalars' , 'cell_vectors' , 'cell_tensors' ) : #NEWLINE# #INDENT# d . pop ( ( ( '_' + name ) + '_list' ) , None ) #NEWLINE# d . pop ( ( ( '_' + name ) + '_name' ) , None ) #NEWLINE# #UNINDENT# data = self . data #NEWLINE# if ( data is not None ) : #NEWLINE# #INDENT# sdata = write_dataset_to_string ( data ) #NEWLINE# if ( sys . version_info [ 0 ] > 2 ) : #NEWLINE# #INDENT# z = gzip_string ( sdata . encode ( 'ascii' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# z = gzip_string ( sdata ) #NEWLINE# #UNINDENT# d [ 'data' ] = z #NEWLINE# #UNINDENT# return d