decodetree: re.fullmatch was added in 3.4
PATCH 1/1 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.
Signed-off-by Paolo Bonzini <[email protected]>
--- scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/decodetree.py +1 -1
@@ -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):
Signature · 1 line
1.8.3.1
Cc'ing maintainers :P
$ ./scripts/get_maintainer.pl -f scripts/decodetree.py Eduardo Habkost <[email protected]> (odd fixer:Python scripts) Cleber Rosa <[email protected]> (odd fixer:Python scripts)
Quoted 4 lines · Paolo Bonzini
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 <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 18 lines
--- scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/decodetree.py +1
-1@@ -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):
Eduardo Habkost
AppliedQuoted 6 lines · Philippe Mathieu-Daudé
Cc'ing maintainers :P
$ ./scripts/get_maintainer.pl -f scripts/decodetree.py Eduardo Habkost <[email protected]> (odd fixer:Python scripts) Cleber Rosa <[email protected]> (odd fixer:Python scripts)
Quoted 7 lines
Quoted 4 lines · Paolo Bonzini
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 <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Queued, thanks!
Signature · 1 line
Eduardo