qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] decodetree: re.fullmatch was added in 3.4
@ 2019-01-25 10:03 Paolo Bonzini
  2019-01-25 12:45 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2019-01-25 10:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

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>
---
 scripts/decodetree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 0bc73b5..e342d27 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -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):
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-25 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-25 10:03 [Qemu-devel] [PATCH] decodetree: re.fullmatch was added in 3.4 Paolo Bonzini
2019-01-25 12:45 ` Philippe Mathieu-Daudé
2019-01-25 13:42   ` Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).