From 29c840586c904bf3b149ca4815b061e2c94152a5 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 12 Feb 2026 10:04:11 +0100 Subject: [PATCH] fix use of re flag in vbuild.py to support python >= 3.11 --- src/cdh/vue/vbuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdh/vue/vbuild.py b/src/cdh/vue/vbuild.py index 2c856d68..25f82091 100644 --- a/src/cdh/vue/vbuild.py +++ b/src/cdh/vue/vbuild.py @@ -86,7 +86,7 @@ class _VueJs: this module is a dependency of the other, making it necessary to load it earlier. If so, sorted() will place this before the other module! """ - IMPORT_RE = r"^import (\w+) from \S+$(?m)" + IMPORT_RE = r"^import (\w+) from \S+$" def __init__(self, name, template_id, code): self.name = name @@ -102,7 +102,7 @@ def __init__(self, name, template_id, code): else: raise Exception("Can't find valid content inside '{' and '}'") - self.dependencies = set(re.findall(_VueJs.IMPORT_RE, code)) + self.dependencies = set(re.findall(_VueJs.IMPORT_RE, code, re.MULTILINE)) def __repr__(self): return "<_VueJS: {}: {}>".format(self.name, self.dependencies)