def fireEvent(self):
        self.state = 'BEFORE'
        self.finishedBefore = []
        beforeResults = []
        while self.before:
            callable, args, kwargs = self.before.pop(0)
            self.finishedBefore.append((callable, args, kwargs))
            try:
                result = callable(*args, **kwargs)
            except:
                log.err()
            else:
                if isinstance(result, Deferred):
                    beforeResults.append(result)
        DeferredList(beforeResults).addCallback(self._continueFiring)
Determine if the specified attribute exists
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/base.py/_ThreePhaseEvent.fireEvent--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/Element.hasAttribute