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

remove Python print_function import #29371

Merged
merged 4 commits into from
Feb 25, 2025
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: 0 additions & 2 deletions Tools/Replay/check_replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
check that replay produced identical results
'''

from __future__ import print_function

def check_log(logfile, progress=print, ekf2_only=False, ekf3_only=False, verbose=False, accuracy=0.0, ignores=set()):
'''check replay log for matching output'''
from pymavlink import mavutil
Expand Down
1 change: 0 additions & 1 deletion Tools/ardupilotwaf/ardupilotwaf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: utf-8

from __future__ import print_function
from waflib import Build, ConfigSet, Configure, Context, Errors, Logs, Options, Utils, Task
from waflib.Configure import conf
from waflib.Scripting import run_command
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/antennatracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

'''

from __future__ import print_function

import math
import operator
import os
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/arducopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function
import copy
import math
import os
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/arduplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function
import copy
import math
import os
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/ardusub.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function
import os
import sys

Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/autotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

AP_FLAKE8_CLEAN
"""
from __future__ import print_function
import atexit
import fnmatch
import copy
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/balancebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

'''

from __future__ import print_function

import os

from rover import AutoTestRover
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/blimp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function
import os
import shutil

Expand Down
3 changes: 0 additions & 3 deletions Tools/autotest/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
AP_FLAKE8_CLEAN
"""

from __future__ import print_function


import os
import pexpect
import signal
Expand Down
2 changes: 1 addition & 1 deletion Tools/autotest/fakepos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function

import errno
import socket
import struct
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/helicopter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function

from arducopter import AutoTestCopter

import vehicle_test_suite
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/logger_metadata/emit_html.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import emitter

class HTMLEmitter(emitter.Emitter):
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/logger_metadata/emit_rst.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import emitter

class RSTEmitter(emitter.Emitter):
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/logger_metadata/emit_xml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

from lxml import etree
import emitter

Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/logger_metadata/enum_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function

import argparse
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/logger_metadata/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
AP_FLAKE8_CLEAN
'''

from __future__ import print_function

import argparse
import copy
import os
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/param_metadata/param_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

'''

from __future__ import print_function
import copy
import os
import re
Expand Down
2 changes: 1 addition & 1 deletion Tools/autotest/param_metadata/rstemit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function

import re
from param import known_param_fields, known_units
from emit import Emit
Expand Down
2 changes: 1 addition & 1 deletion Tools/autotest/pysim/fdpexpect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

$Id: fdpexpect.py 505 2007-12-26 21:33:50Z noah $
"""
from __future__ import print_function

import os

from pexpect import ExceptionPexpect, spawn
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/pysim/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

'''
AP_FLAKE8_CLEAN
'''
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/quadplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

'''

from __future__ import print_function
import os
import numpy
import math
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/rover.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

'''

from __future__ import print_function

import copy
import math
import operator
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/sailboat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

'''

from __future__ import print_function

import os

from rover import AutoTestRover
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/sim_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
AP_FLAKE8_CLEAN

"""
from __future__ import print_function

import atexit
import datetime
Expand Down
2 changes: 0 additions & 2 deletions Tools/autotest/test_build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
AP_FLAKE8_CLEAN
"""

from __future__ import print_function

import fnmatch
import optparse
import os
Expand Down
1 change: 0 additions & 1 deletion Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
AP_FLAKE8_CLEAN

'''
from __future__ import print_function

import abc
import copy
Expand Down
1 change: 0 additions & 1 deletion Tools/mavproxy_modules/sitl_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
'''calibration simulation command handling'''

from __future__ import division, print_function
import math
from pymavlink import quaternion
import random
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/build_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
AP_FLAKE8_CLEAN
"""

from __future__ import print_function

import datetime
import optparse
import os
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/build_binaries_history.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import os
import sqlite3

Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/du32_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"""

from __future__ import print_function

import optparse
import sys
import time
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/generate_manifest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function

import copy
import fnmatch
import gen_stable
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/powr_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"""

from __future__ import print_function

import optparse
import sys
import time
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/sensor_status_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"""

from __future__ import print_function

import optparse
import sys
import time
Expand Down
2 changes: 0 additions & 2 deletions Tools/scripts/solution_status_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"""

from __future__ import print_function

import optparse
import sys
import time
Expand Down
3 changes: 0 additions & 3 deletions Tools/scripts/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@

# AP_FLAKE8_CLEAN

# for python2.7 compatibility
from __future__ import print_function

import sys
import argparse
import binascii
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL/examples/DSP_test/gyro_isb_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
'''
extract ISBH and ISBD messages from AP_Logging files and produce C++ arrays for consumption by the DSP subsystem
'''
from __future__ import print_function

import os
import sys
import time
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Math/tools/geodesic_grid/geodesic_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function

import argparse
import numpy as np
import sys
Expand Down
1 change: 0 additions & 1 deletion waf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

from __future__ import print_function
import subprocess
import os.path as p
import sys
Expand Down
2 changes: 0 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env python3
# encoding: utf-8

from __future__ import print_function

import os.path
import os
import sys
Expand Down
Loading