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
This commit is contained in:
Paolo Bonzini 2019-01-25 13:47:39 -05:00 committed by Lioncash
parent 75954fa97d
commit 54c93c5198
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -206,7 +206,7 @@ def output(*args):
output_fd.write(a) output_fd.write(a)
if sys.version_info >= (3, 0): if sys.version_info >= (3, 4):
re_fullmatch = re.fullmatch re_fullmatch = re.fullmatch
else: else:
def re_fullmatch(pat, str): def re_fullmatch(pat, str):