def _mark_valid(self):
        if self._parent_pool:
            # Refer to self using a weakreference so that we don't
            # create a reference cycle
            weakself = weakref.ref(self)

            # Set up callbacks to mark pool as invalid when parents
            # are destroyed
            self._weakref = weakref.ref(self._parent_pool._is_valid,
                                        lambda x: \
                                        _mark_weakpool_invalid(weakself))

        # mark pool as valid
        self._is_valid = lambda: 1
Mark pool as valid
dataset/ETHPy150Open edgewall/trac/tracopt/versioncontrol/svn/svn_fs.py/Pool._mark_valid