From 77f0c433145d085fca8d925b633b2ed67a7aed42 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 20 Mar 2026 13:36:04 +0500 Subject: [PATCH] ids_doc_generator - fix invalid escape sequence SyntaxWarning SyntaxWarning: invalid escape sequence '\/' at line 312. `\/` in a plain string is treated as `/` by accident; replaced with raw string r"..." to be explicit. --- src/ifctester/test/ids_doc_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifctester/test/ids_doc_generator.py b/src/ifctester/test/ids_doc_generator.py index 1b6b16d221..f91decc1a7 100644 --- a/src/ifctester/test/ids_doc_generator.py +++ b/src/ifctester/test/ids_doc_generator.py @@ -310,7 +310,7 @@ spec = ifctester.ids.Specification( ) specs.specifications.append(spec) spec.applicability.append(ifctester.ids.Entity(name="IFCWALLTYPE")) -restriction = ifctester.ids.Restriction(options={"pattern": "(-|[0-9]{2,3})\/(-|[0-9]{2,3})\/(-|[0-9]{2,3})"}) +restriction = ifctester.ids.Restriction(options={"pattern": r"(-|[0-9]{2,3})/(-|[0-9]{2,3})/(-|[0-9]{2,3})"}) spec.requirements.append( ifctester.ids.Property( propertySet="Pset_WallCommon",