Browse Source

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>
pull/88/head
Philippe Mathieu-Daudé 6 years ago
parent
commit
3d004a371e
  1. 2
      scripts/analyse-locks-simpletrace.py
  2. 2
      scripts/decodetree.py
  3. 2
      scripts/device-crash-test
  4. 2
      scripts/kvm/kvm_flightrecorder
  5. 2
      scripts/qapi-gen.py
  6. 2
      scripts/qmp/qemu-ga-client
  7. 2
      scripts/qmp/qmp
  8. 2
      scripts/qmp/qmp-shell
  9. 2
      scripts/qmp/qom-fuse
  10. 2
      scripts/render_block_graph.py
  11. 2
      scripts/replay-dump.py
  12. 2
      scripts/simpletrace.py
  13. 2
      scripts/tracetool.py
  14. 2
      scripts/vmstate-static-checker.py

2
scripts/analyse-locks-simpletrace.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Analyse lock events and compute statistics

2
scripts/decodetree.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Copyright (c) 2018 Linaro Limited
#
# This library is free software; you can redistribute it and/or

2
scripts/device-crash-test

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Copyright (c) 2017 Red Hat Inc
#

2
scripts/kvm/kvm_flightrecorder

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# KVM Flight Recorder - ring buffer tracing script
#

2
scripts/qapi-gen.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# QAPI generator
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.

2
scripts/qmp/qemu-ga-client

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
# QEMU Guest Agent Client
#

2
scripts/qmp/qmp

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# QMP command line tool
#

2
scripts/qmp/qmp-shell

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# Low-level QEMU shell on top of QMP.
#

2
scripts/qmp/qom-fuse

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
##
# QEMU Object Model test tools
#

2
scripts/render_block_graph.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Render Qemu Block Graph
#

2
scripts/replay-dump.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Dump the contents of a recorded execution stream

2
scripts/simpletrace.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# Pretty-printer for simple trace backend binary trace files
#

2
scripts/tracetool.py

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

2
scripts/vmstate-static-checker.py

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# Compares vmstate information stored in JSON format, obtained from
# the -dump-vmstate QEMU command.

Loading…
Cancel
Save