decodetree: re.fullmatch was added in 3.4
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2019 10:03:22 +0000 (11:03 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 25 Jan 2019 13:41:42 +0000 (11:41 -0200)
Python 3 versions earlier than 3.4 do not have it, use the
same workaround that is in place for 3.0.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1548410602-16008-1-git-send-email-pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/decodetree.py

index 0bc73b5990de9cc9b4ee2d091cd1a9955c8030a5..e342d278b8f6976e956cb251cec84da0d694fc58 100755 (executable)
@@ -204,7 +204,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):