'Create a representation of the non-volatile state of this object.
@rtype: L{dict} mapping L{bytes} to L{object}
@return: The non-volatile state of the queue.'

def __getstate__(self):

    dct = self.__dict__.copy()
    del dct['managed']
    return dct
