qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] python: remove more instances of sys.version_info


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] python: remove more instances of sys.version_info
Date: Fri, 29 May 2020 11:34:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 5/14/20 5:52 AM, John Snow wrote:
> We guarantee 3.5+ everywhere; remove more dead checks. In general, try
> to avoid using version checks and instead prefer to attempt behavior
> when possible.
> 
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  scripts/analyze-migration.py             |  5 -----
>  scripts/decodetree.py                    | 25 +++++++++---------------
>  scripts/qmp/qmp-shell                    |  3 ---
>  tests/docker/docker.py                   |  5 +++--
>  tests/qemu-iotests/nbd-fault-injector.py |  5 +----
>  5 files changed, 13 insertions(+), 30 deletions(-)

Thanks, applied to my python-next tree:
https://gitlab.com/philmd/qemu/commits/python-next




reply via email to

[Prev in Thread] Current Thread [Next in Thread]