Skip to content

Commit add8c4e

Browse files
authored
Merge pull request #2526 from emmanuel-ferdman/master
Resolve deprecation warnings of regex library
2 parents bd3657d + c05e6f4 commit add8c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gns3server/compute/qemu/qemu_vm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def qemu_path(self, qemu_path):
225225
if qemu_bin == "qemu":
226226
self._platform = "i386"
227227
else:
228-
self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, re.IGNORECASE)
228+
self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, flags=re.IGNORECASE)
229229
if self._platform.split(".")[0] not in QEMU_PLATFORMS:
230230
raise QemuError("Platform {} is unknown".format(self._platform))
231231
log.info('QEMU VM "{name}" [{id}] has set the QEMU path to {qemu_path}'.format(name=self._name,

0 commit comments

Comments
 (0)