global: correct shebang lines to refernce python3

also remove the odd encoding line which is not required in Py3
This commit is contained in:
Peter Barker
2025-07-22 10:45:57 +10:00
committed by Andrew Tridgell
parent 4405a3838b
commit 3708936c62
200 changed files with 212 additions and 308 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
""" ArduPilot BiquadFilter
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Extract version information for the various vehicle types, print it
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''In ArduPilot 4.7 the distance values were moved to float to
facilitate supporting rangefinders with more than 327m of range.
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Run autotest repeatedly at different speedups to help find best default speedup
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import errno
import socket
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''Generates parameter metadata files suitable for consumption by
ground control stations and various web services
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import errno
import socket
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Check Tools/bootloader/board_types.txt for problems
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
A script suitable for use as a git pre-commit hook to ensure your
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# useful script to test the build of all example code
# This helps when doing large merges
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
This script intend to provide a pretty size diff between two binaries.
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
script to automatically create a copy of a board for an OEM setup
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
decode an stm32 ICSR register value
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+2 -1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
decode an watchdog message
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parses a log file and shows how Copter's du32 changes over time
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
script to determine what features have been built into an ArduPilot binary
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parameter File Validation Script
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
play back an onboard log as a FlightGear FG NET stream
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parses a log file and shows how the power flags changed over time
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Runs flake8 over Python files which contain a marker indicating
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parses a log file and shows how the SENSOR_STATUS flags changed over time
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parses a log file and shows how the solution status changed over time
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+2 -1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
############################################################################
#
# Copyright (c) 2012-2017 PX4 Development Team. All rights reserved.
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_stlib(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
# flake8: noqa
from waflib.TaskGen import after_method, before_method, feature
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
# flake8: noqa
def build(bld):
if bld.env.BOOTLOADER:
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Script designed to provide a simple console-based program to
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_example(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(
+1 -2
View File
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
bld.ap_find_tests(

Some files were not shown because too many files have changed in this diff Show More