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

* Re: [Qemu-devel] [PATCH] decodetree: re.fullmatch was added in 3.4
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-01-25 12:45 UTC (permalink / raw)
  To: Paolo Bonzini, Eduardo Habkost, Cleber Rosa; +Cc: qemu-devel, qemu-trivial

Cc'ing maintainers :P

$ ./scripts/get_maintainer.pl -f scripts/decodetree.py
Eduardo Habkost <ehabkost@redhat.com> (odd fixer:Python scripts)
Cleber Rosa <crosa@redhat.com> (odd fixer:Python scripts)

On 1/25/19 11:03 AM, Paolo Bonzini wrote:
> 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>

Reviewed-by: Philippe Mathieu-Daudé <philmd@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):
> 

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

* Re: [Qemu-devel] [PATCH] decodetree: re.fullmatch was added in 3.4
  2019-01-25 12:45 ` Philippe Mathieu-Daudé
@ 2019-01-25 13:42   ` Eduardo Habkost
  0 siblings, 0 replies; 3+ messages in thread
From: Eduardo Habkost @ 2019-01-25 13:42 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Paolo Bonzini, Cleber Rosa, qemu-devel, qemu-trivial

On Fri, Jan 25, 2019 at 01:45:00PM +0100, Philippe Mathieu-Daudé wrote:
> Cc'ing maintainers :P
> 
> $ ./scripts/get_maintainer.pl -f scripts/decodetree.py
> Eduardo Habkost <ehabkost@redhat.com> (odd fixer:Python scripts)
> Cleber Rosa <crosa@redhat.com> (odd fixer:Python scripts)
> 
> On 1/25/19 11:03 AM, Paolo Bonzini wrote:
> > 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>
> 
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Queued, thanks!

-- 
Eduardo

^ permalink raw reply	[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).