summaryrefslogtreecommitdiff
path: root/lib/update.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-03-22 17:43:50 +0100
committerGitHub <noreply@github.com>2025-03-22 17:43:50 +0100
commit40405edfe1ab9735e33fd705b090dc467983611f (patch)
tree1c475c7ab627a9959327fef8cba69815a5739397 /lib/update.py
parentee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff)
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/update.py')
-rw-r--r--lib/update.py4
1 files changed, 2 insertions, 2 deletions
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)