equal
deleted
inserted
replaced
293 except Unsupported: |
293 except Unsupported: |
294 # some solutions have been lost, can't apply this rql expr |
294 # some solutions have been lost, can't apply this rql expr |
295 if parent is None: |
295 if parent is None: |
296 self.current_statement().remove_node(new, undefine=True) |
296 self.current_statement().remove_node(new, undefine=True) |
297 else: |
297 else: |
298 parent.parent.replace(or_, or_.children[0]) |
298 grandpa.replace(or_, parent) |
299 self._cleanup_inserted(new) |
299 self._cleanup_inserted(new) |
300 raise |
300 raise |
301 else: |
301 else: |
302 with tempattr(self, '_insert_scope', new): |
302 with tempattr(self, '_insert_scope', new): |
303 self.insert_pending() |
303 self.insert_pending() |