Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all shebang lines invoke python3 rather than just python #1497

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/ANUGA/lat_long_UTM_conversion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Lat Long - UTM, UTM - Lat Long conversions
#
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/LowPassFilter2p.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from math import *

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/camera_projection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
class to project a camera view onto the map
'''
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/grapher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
core library for graphing in mavexplorer
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/kmlread.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import lxml.etree as etree
from io import BytesIO as SIO
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/live_graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/magfit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
fit best estimate of magnetometer offsets, diagonals, off-diagonals, cmot and scaling using WMM target
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mav_fft.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
extract ISBH and ISBD messages from AP_Logging files and produce FFT plots
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mission_item_protocol.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
base class for modules generally transfering items using the MISSION_ITEM protocol
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_checklist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy checklist, implemented in a child process
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_elevation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
'''
Wrapper for the SRTM module (srtm.py)
It will grab the altitude of a long,lat pair from the SRTM database
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_instructor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy instructor station, UI runs in a child process
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_menu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
menu handling widgets for wx

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''settings object for MAVProxy modules'''

import time
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''common mavproxy utility functions'''

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/mp_widgets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
some useful wx widgets

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/msgstats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
show stats on messages in a log in MAVExplorer
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/ntrip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
NTRIP client module
based on client from http://github.com/jcmb/NTRIP
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/rtcm3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''Decode RTCM v3 messages'''

RTCMv3_PREAMBLE = 0xD3
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/srtm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Pylint: Disable name warnings
# pylint: disable-msg=C0103
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/textconsole.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy default console
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/win_layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function
import os, wx, pickle
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/wxconsole.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy message console, implemented in a child process
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/wxhorizon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy horizon indicator.
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/wxrc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy RC GUI
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/wxsaildash.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
MAVProxy sailing dashboard
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_DGPS.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
support for a GCS attached DGPS system
'''
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_GPSInput.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
support for GPS_INPUT message
'''
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_HIL.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
HIL module
Andrew Tridgell
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_antenna.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
antenna pointing module
Andrew Tridgell
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_arm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''arm/disarm command handling'''

import time, os
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_auxopt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''auxopt command handling'''

import time, os
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_battery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''battery commands'''

import time, math
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_calibration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''calibration command handling'''

import time, os
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_cameraview.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
camera view module
Malcolm Gill
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_checklist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Checklist module
Stephen Dade
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_cmdlong.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''command long'''

import time, os
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_dataflash_logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_devop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''remote low level device operations'''

import time, os, sys
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Example Module
Peter Barker, September 2016
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_fakegps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''fake GPS input using GPS_INPUT packet'''

import time
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_fieldcheck/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
CMAC mission control
Peter Barker
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_firmware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_followtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
test follow-me options in ArduPilot
Andrew Tridgell
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_ftp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''mavlink file transfer support'''

import io
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_generator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Generator Module - module for generators reporting via the GENERATOR_STATUS message
Peter Barker, Jun 2020
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_gimbal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
gimbal control module
Andrew Tridgell
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_gopro.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''gopro control over mavlink for the solo-gimbal

To use this module connect to a Solo with a GoPro installed on the gimbal.
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_instructor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""
MAVProxy instructor station module
André Kjellstrup @ NORCE
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_joystick/findjoy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''This is a script that will help you identify controls on your joystick
in order to create an appropriate joystick definition for the joystick
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_kmlread.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''Module to add or clear kml layers on the map

Copyright Stephen Dade 2016
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_layout.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''window layout command handling'''

from MAVProxy.modules.lib import mp_module
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_link.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''enable run-time addition and removal of master link, just like --master on the cnd line

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''log command handling'''

import time, os
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/GAreader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Module to read DTM files published by Geoscience Australia
Written by Stephen Dade ([email protected]
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
map display module
Andrew Tridgell
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/mp_elevation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3

'''backwards-compatability module - ElevationModel was moved into lib
but we don't want to break existing users
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/mp_slipmap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
slipmap based on mp_tile
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/mp_slipmap_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
slipmap based on mp_tile
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/mp_tile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
access satellite map tile database

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_map/srtm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3

'''backwards-compatability module - srtm was moved into lib
but we don't want to break existing users
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Arbitrary Message Module
Peter Barker, September 2017
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_messagerate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
Message Rate viewer
Peter Barker, December 2018
Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
miscellaneous commands

Expand Down
2 changes: 1 addition & 1 deletion MAVProxy/modules/mavproxy_misseditor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
mission editor module
Michael Day
Expand Down
Loading