From 40405edfe1ab9735e33fd705b090dc467983611f Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 22 Mar 2025 17:43:50 +0100 Subject: parent.remove -> delete (#3600) --- lib/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/update.py') diff --git a/lib/update.py b/lib/update.py index e0f6129a..6816bcd6 100644 --- a/lib/update.py +++ b/lib/update.py @@ -240,13 +240,13 @@ def reposition_legacy_command(command): # instead of calculating the transform for the new position, we take the easy route and remove # the old commands and set new ones add_commands(Stroke(element), [command_name], InkstitchPoint(*target_point)) - command_group.getparent().remove(command_group) + command_group.delete() def _rename_command(document, symbol, old_name, new_name): symbol_id = symbol.get_id() if symbol_id.startswith(old_name): - symbol.getparent().remove(symbol) + symbol.delete() ensure_symbol(document, new_name) _update_command(document, symbol_id, new_name) -- cgit v1.2.3