From 1bba62a75a0ce825b66d6f06fbfe4d73ffc6d50a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 7 May 2020 09:43:15 -0700 Subject: Remove remaining Python 2 references This changes two things in all applicable files: - Remove imports from __future__ - Change default shebangs from /usr/bin/env python to /usr/bin/env python3 --- host/tests/devtest/multi_usrp_test.py | 1 - host/tests/devtest/python_api_test.py | 1 - host/tests/devtest/run_testsuite.py | 1 - host/tests/devtest/uhd_test_base.py | 1 - host/tests/devtest/usrp_probe.py | 1 - 5 files changed, 5 deletions(-) (limited to 'host/tests') diff --git a/host/tests/devtest/multi_usrp_test.py b/host/tests/devtest/multi_usrp_test.py index 04baf904e..aa95cf54f 100755 --- a/host/tests/devtest/multi_usrp_test.py +++ b/host/tests/devtest/multi_usrp_test.py @@ -5,7 +5,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later # """ Test all python API functions for the connected device. """ -from __future__ import print_function import sys import argparse import numpy diff --git a/host/tests/devtest/python_api_test.py b/host/tests/devtest/python_api_test.py index feccd91f9..d9fcda0b0 100644 --- a/host/tests/devtest/python_api_test.py +++ b/host/tests/devtest/python_api_test.py @@ -6,7 +6,6 @@ # """ Test Python API """ -from __future__ import print_function import os from uhd_test_base import shell_application from uhd_test_base import uhd_test_case diff --git a/host/tests/devtest/run_testsuite.py b/host/tests/devtest/run_testsuite.py index 650f34fa3..0c82fe9c6 100755 --- a/host/tests/devtest/run_testsuite.py +++ b/host/tests/devtest/run_testsuite.py @@ -9,7 +9,6 @@ Device test runner. """ -from __future__ import print_function import os import sys import subprocess diff --git a/host/tests/devtest/uhd_test_base.py b/host/tests/devtest/uhd_test_base.py index 9f710b7be..11ff9b026 100755 --- a/host/tests/devtest/uhd_test_base.py +++ b/host/tests/devtest/uhd_test_base.py @@ -10,7 +10,6 @@ Devtest: Base module. Provides classes for running devtest tests. """ -from __future__ import print_function import os import sys import unittest diff --git a/host/tests/devtest/usrp_probe.py b/host/tests/devtest/usrp_probe.py index e6c09d53f..b9afd4d50 100644 --- a/host/tests/devtest/usrp_probe.py +++ b/host/tests/devtest/usrp_probe.py @@ -7,7 +7,6 @@ # """ Run uhd_find_devices and parse the output. """ -from __future__ import print_function import re import subprocess -- cgit v1.2.3