From f120cd737c3c4272b6f54f19d59184a992ebecd5 Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sun, 10 Dec 2023 16:19:34 +0100 Subject: [PATCH] fix deprecation in chain_paths --- extensions/fablabchemnitz/chain_paths/chain_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/chain_paths/chain_paths.py b/extensions/fablabchemnitz/chain_paths/chain_paths.py index d8c309f..9a3e561 100644 --- a/extensions/fablabchemnitz/chain_paths/chain_paths.py +++ b/extensions/fablabchemnitz/chain_paths/chain_paths.py @@ -179,7 +179,7 @@ class ChainPaths(inkex.EffectExtension): for id, node in self.svg.selected.items(): path_d = CubicSuperPath(Path(node.get('d'))) # ATTENTION: for parsePath() it is the same, if first and last point coincide, or if the path is really closed. - path_closed = True if re.search("z\s*$", node.get('d')) else False + path_closed = True if re.search(r'z\s*$', node.get('d')) else False new = [] cur_idx = -1 for chain in path_d: