def pop(self):
        ident = get_ident()
        stack = self._stack.get(ident, None)
        if stack is None:
            return None
        elif len(stack) == 1:
            self._stack.pop(ident, None)
            return stack[-1]
        else:
            return stack.pop()
Test parsing of an error element with a condition.
dataset/ETHPy150Open zeaphoo/cocopot/cocopot/local.py/LocalStack.pop--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_jabbererror.py/ParseErrorTest.test_condition