Skip to content
Snippets Groups Projects

Infrastructure: Remove Instructionblock

2 files
+ 88
61
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
1
@@ -314,7 +314,7 @@ class TemplateManager:
if idx_to_use is None:
raise IndexError("did not find place to insert")
self._instructions = self._instructions[1:idx_to_use] + new_instruction + self._instructions[idx_to_use + 1:]
self._instructions = self._instructions[0:idx_to_use] + new_instruction + self._instructions[idx_to_use:]
def remove_instruction(self, identifier: str = None, idx: int | typing.List[int] = None,
instruction: Instruction | typing.List[Instruction] = None):
Loading