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-18 15:02:51 +10:00
committed by Andrew Tridgell
parent 4405a3838b
commit 3708936c62
200 changed files with 212 additions and 308 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python
# encoding: utf-8
#!/usr/bin/env python3
def build(bld):
vehicle = bld.path.name

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Extract version information for the various vehicle types, print it

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -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.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import errno
import socket

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import errno
import socket

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Check Tools/bootloader/board_types.txt for problems

View File

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

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
This script intend to provide a pretty size diff between two binaries.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
decode an stm32 ICSR register value

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
decode an watchdog message

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

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
AP_FLAKE8_CLEAN

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Parameter File Validation Script

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

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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
Runs flake8 over Python files which contain a marker indicating

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# flake8: noqa

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