'Restore the non-volatile state of the queue and recreate the volatile
state.
@type state: L{dict} mapping L{bytes} to L{object}
@param state: The non-volatile state of the queue.'

def __setstate__(self, state):

    self.__dict__.update(state)
    self._init()
