]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/replay-dump.py
scripts: Explicit usage of Python 3 (scripts with __main__)
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Jan 2020 16:32:25 +0000 (17:32 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 7 Feb 2020 14:12:48 +0000 (15:12 +0100)
commit3d004a371e88a7454eb8ab8c19e6b0bd067b34cd
treec10afd60b1c60622e6b2a2e5c5281085bdad3b6f
parentc88ee46cdb9888fbe9ea45c174743d6f7544b737
scripts: Explicit usage of Python 3 (scripts with __main__)

Use the program search path to find the Python 3 interpreter.

Patch created mechanically by running:

  $ sed -i "s,^#\!/usr/bin/\(env\ \)\?python$,#\!/usr/bin/env python3," \
       $(git grep -l 'if __name__.*__main__')

Reported-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200130163232.10446-6-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
14 files changed:
scripts/analyse-locks-simpletrace.py
scripts/decodetree.py
scripts/device-crash-test
scripts/kvm/kvm_flightrecorder
scripts/qapi-gen.py
scripts/qmp/qemu-ga-client
scripts/qmp/qmp
scripts/qmp/qmp-shell
scripts/qmp/qom-fuse
scripts/render_block_graph.py
scripts/replay-dump.py
scripts/simpletrace.py
scripts/tracetool.py
scripts/vmstate-static-checker.py