summaryrefslogtreecommitdiffstats
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-01-30 17:32:25 +0100
committerPhilippe Mathieu-Daudé2020-02-07 15:12:48 +0100
commit3d004a371e88a7454eb8ab8c19e6b0bd067b34cd (patch)
treec10afd60b1c60622e6b2a2e5c5281085bdad3b6f /scripts/simpletrace.py
parenttests: Explicit usage of Python 3 (diff)
downloadqemu-3d004a371e88a7454eb8ab8c19e6b0bd067b34cd.tar.gz
qemu-3d004a371e88a7454eb8ab8c19e6b0bd067b34cd.tar.xz
qemu-3d004a371e88a7454eb8ab8c19e6b0bd067b34cd.zip
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>
Diffstat (limited to 'scripts/simpletrace.py')
-rwxr-xr-xscripts/simpletrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py
index 45485b864b..2bc043112a 100755
--- a/scripts/simpletrace.py
+++ b/scripts/simpletrace.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Pretty-printer for simple trace backend binary trace files
#