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/extensions/redwork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/extensions/redwork.py') diff --git a/lib/extensions/redwork.py b/lib/extensions/redwork.py index 5e0ae5a3..48a9da31 100644 --- a/lib/extensions/redwork.py +++ b/lib/extensions/redwork.py @@ -68,7 +68,7 @@ class Redwork(InkstitchExtension): # remove input elements if not self.options.keep_originals: for element in elements: - element.node.getparent().remove(element.node) + element.node.delete() def _ensure_starting_point(self, multi_line_string, starting_point): # returns a MultiLineString whose first LineString starts close to starting_point @@ -97,7 +97,7 @@ class Redwork(InkstitchExtension): if command: # remove command symbol command_group = command.connector.getparent() - command_group.getparent().remove(command_group) + command_group.delete() # return the first occurence directly return command.target_point -- cgit v1.2.3