From c05e6f4de4c05f7ca9b3ad0f5315de3640d981f3 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Sat, 26 Apr 2025 00:15:16 -0700 Subject: [PATCH] Resolve deprecation warnings of regex library Signed-off-by: Emmanuel Ferdman --- gns3server/compute/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 0e63af6e..28a00c82 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -225,7 +225,7 @@ class QemuVM(BaseNode): if qemu_bin == "qemu": self._platform = "i386" else: - self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, re.IGNORECASE) + self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, flags=re.IGNORECASE) if self._platform.split(".")[0] not in QEMU_PLATFORMS: raise QemuError("Platform {} is unknown".format(self._platform)) log.info('QEMU VM "{name}" [{id}] has set the QEMU path to {qemu_path}'.format(name=self._name,