Skip to content

Commit

Permalink
scripts/kvm/vmxcap: Use Python 3 interpreter and add pseudo-main()
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200512103238.7078-5-philmd@redhat.com>
  • Loading branch information
philmd committed May 31, 2020
1 parent 06d4c71 commit e57a707
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/kvm/vmxcap
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# tool for querying VMX capabilities
#
Expand Down Expand Up @@ -275,5 +275,6 @@ controls = [
),
]

for c in controls:
c.show()
if __name__ == '__main__':
for c in controls:
c.show()

0 comments on commit e57a707

Please sign in to comment.