#NEWLINE# def __setstate__( self , value ) : #NEWLINE# #INDENT# 'Restore from pickling.' #NEWLINE# self . __mode = value [ 'mode' ] #NEWLINE# self . __mongos_mode = _MONGOS_MODES [ self . __mode ] #NEWLINE# self . __tag_sets = _validate_tag_sets ( value [ 'tag_sets' ] )