diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-22 17:43:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:43:50 +0100 |
| commit | 40405edfe1ab9735e33fd705b090dc467983611f (patch) | |
| tree | 1c475c7ab627a9959327fef8cba69815a5739397 /lib/tartan | |
| parent | ee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff) | |
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/tartan')
| -rw-r--r-- | lib/tartan/fill_element.py | 2 | ||||
| -rw-r--r-- | lib/tartan/svg.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tartan/fill_element.py b/lib/tartan/fill_element.py index 6666181e..f4f691c2 100644 --- a/lib/tartan/fill_element.py +++ b/lib/tartan/fill_element.py @@ -20,6 +20,6 @@ def prepare_tartan_fill_element(element: BaseElement) -> None: outer_group = parent_group.getparent() assert outer_group is not None, f"Tartan element {element.get_id()} should have a parent group" outer_group.insert(outer_group.index(parent_group), element) - outer_group.remove(parent_group) + parent_group.delete() # make sure the element is invisible element.style['display'] = 'inline' diff --git a/lib/tartan/svg.py b/lib/tartan/svg.py index 62d737c9..1fd4b3ad 100644 --- a/lib/tartan/svg.py +++ b/lib/tartan/svg.py @@ -70,7 +70,7 @@ class TartanSvgGroup: # remove everything but the tartan outline for child in parent_group.iterchildren(): if child != outline: - parent_group.remove(child) + child.delete() group = cast(Group, parent_group) else: group = Group() |
