From 54c93c5198f5c39da95263ee62081ed6ab07d92d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 25 Jan 2019 13:47:39 -0500 Subject: [PATCH] decodetree: re.fullmatch was added in 3.4 Python 3 versions earlier than 3.4 do not have it, use the same workaround that is in place for 3.0. Backports commit 651514df88fd53d537b3b78a7548663cc0816b1b from qemu --- qemu/scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/scripts/decodetree.py b/qemu/scripts/decodetree.py index c851e95f..7913944a 100644 --- a/qemu/scripts/decodetree.py +++ b/qemu/scripts/decodetree.py @@ -206,7 +206,7 @@ def output(*args): output_fd.write(a) -if sys.version_info >= (3, 0): +if sys.version_info >= (3, 4): re_fullmatch = re.fullmatch else: def re_fullmatch(pat, str):