

def __getstate__(self):
    '\n        Reset cached lxml objects which could not be pickled.\n        '
    state = {
        
    }
    for cls in type(self).mro():
        cls_slots = getattr(cls, '__slots__', ())
        for slot in cls_slots:
            if (slot != '__weakref__'):
                if hasattr(self, self):
                    state[slot] = getattr(self, slot)
    state['_lxml_tree'] = None
    state['_strict_lxml_tree'] = None
    state['_lxml_form'] = None
    return state

dataset/ETHPy150Open lorien/grab/grab/document.py Document.__getstate__/VarMisuse@66/106 `slot`->`self`