[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 4/6] scripts/kvm/vmxcap: Use Python 3 interpreter and add
From: |
John Snow |
Subject: |
Re: [PATCH v4 4/6] scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main() |
Date: |
Wed, 13 May 2020 17:00:26 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 5/12/20 6:32 AM, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> scripts/kvm/vmxcap | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap
> index 971ed0e721..6fe66d5f57 100755
> --- a/scripts/kvm/vmxcap
> +++ b/scripts/kvm/vmxcap
> @@ -1,4 +1,4 @@
> -#!/usr/bin/python
> +#!/usr/bin/env python3
> #
> # tool for querying VMX capabilities
> #
> @@ -275,5 +275,6 @@ controls = [
> ),
> ]
>
> -for c in controls:
> - c.show()
> +if __name__ == '__main__':
> + for c in controls:
> + c.show()
>
yay
Reviewed-by: John Snow <address@hidden>
- [PATCH v4 0/6] scripts: More Python fixes, Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 1/6] scripts/qemugdb: Remove shebang header, Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 2/6] scripts/qemu-gdb: Use Python 3 interpreter, Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 3/6] scripts/qmp: Use Python 3 interpreter, Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 4/6] scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main(), Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 5/6] scripts/modules/module_block: Use Python 3 interpreter & add pseudo-main, Philippe Mathieu-Daudé, 2020/05/12
- [PATCH v4 6/6] tests/migration/guestperf: Use Python 3 interpreter, Philippe Mathieu-Daudé, 2020/05/12
- Re: [PATCH v4 0/6] scripts: More Python fixes, Kevin Wolf, 2020/05/12
- Re: [PATCH v4 0/6] scripts: More Python fixes, Philippe Mathieu-Daudé, 2020/05/29