Commit 3d004a37 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé
Browse files

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: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Suggested-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
Suggested-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Acked-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200130163232.10446-6-philmd@redhat.com>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
parent c88ee46c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Analyse lock events and compute statistics
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
# Copyright (c) 2018 Linaro Limited
#
# This library is free software; you can redistribute it and/or
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
#
#  Copyright (c) 2017 Red Hat Inc
#
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python
#!/usr/bin/env python3
#
# KVM Flight Recorder - ring buffer tracing script
#
+1 −1
Original line number Diff line number Diff line
#!/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.
Loading