'pop the most recent capturing buffer from this Context
and return the current writer after the pop.'

def _pop_buffer_and_writer(self):

    buf = self._buffer_stack.pop()
    return (buf, self._buffer_stack[(-1)].write)
