diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-07 09:43:15 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-07 15:10:41 -0500 |
commit | 1bba62a75a0ce825b66d6f06fbfe4d73ffc6d50a (patch) | |
tree | 51d34499aa91d7555338952f946a9f6c48ea0b71 /host/utils | |
parent | 75b7991378e3f465f9d91cba597d98ee5b9054ed (diff) | |
download | uhd-1bba62a75a0ce825b66d6f06fbfe4d73ffc6d50a.tar.gz uhd-1bba62a75a0ce825b66d6f06fbfe4d73ffc6d50a.tar.bz2 uhd-1bba62a75a0ce825b66d6f06fbfe4d73ffc6d50a.zip |
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
Diffstat (limited to 'host/utils')
-rwxr-xr-x | host/utils/b2xx_side_channel.py | 2 | ||||
-rw-r--r-- | host/utils/converter_benchmark.py | 3 | ||||
-rwxr-xr-x | host/utils/latency/graph.py | 2 | ||||
-rwxr-xr-x | host/utils/latency/pci_hwdata.py | 2 | ||||
-rwxr-xr-x | host/utils/latency/run_tests.py | 2 | ||||
-rw-r--r-- | host/utils/rfnoc_blocktool/rfnoc_create_verilog.py | 2 | ||||
-rwxr-xr-x | host/utils/rfnoc_image_builder.py | 2 | ||||
-rw-r--r-- | host/utils/setup.py.in | 2 | ||||
-rw-r--r-- | host/utils/uhd_images_downloader.py.in | 1 | ||||
-rwxr-xr-x | host/utils/usrp2_card_burner.py | 2 | ||||
-rwxr-xr-x | host/utils/usrp2_card_burner_gui.py | 2 | ||||
-rwxr-xr-x | host/utils/usrp2_recovery.py | 2 | ||||
-rwxr-xr-x | host/utils/x300_reset.py | 2 |
13 files changed, 11 insertions, 15 deletions
diff --git a/host/utils/b2xx_side_channel.py b/host/utils/b2xx_side_channel.py index df4540a40..bb0a0156b 100755 --- a/host/utils/b2xx_side_channel.py +++ b/host/utils/b2xx_side_channel.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2013-2015 Ettus Research LLC diff --git a/host/utils/converter_benchmark.py b/host/utils/converter_benchmark.py index 5e6cba11c..0f7f32937 100644 --- a/host/utils/converter_benchmark.py +++ b/host/utils/converter_benchmark.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2015 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company @@ -9,7 +9,6 @@ Wrap the converter_benchmark tool and produce prettier results. """ -from __future__ import print_function import argparse import csv import subprocess diff --git a/host/utils/latency/graph.py b/host/utils/latency/graph.py index a675bc7cd..0eb47081c 100755 --- a/host/utils/latency/graph.py +++ b/host/utils/latency/graph.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2012 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/latency/pci_hwdata.py b/host/utils/latency/pci_hwdata.py index a0f969caa..f37df964d 100755 --- a/host/utils/latency/pci_hwdata.py +++ b/host/utils/latency/pci_hwdata.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2013 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/latency/run_tests.py b/host/utils/latency/run_tests.py index e3056964d..63f1eef40 100755 --- a/host/utils/latency/run_tests.py +++ b/host/utils/latency/run_tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2012 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/rfnoc_blocktool/rfnoc_create_verilog.py b/host/utils/rfnoc_blocktool/rfnoc_create_verilog.py index ce8d4cae7..cc5add95d 100644 --- a/host/utils/rfnoc_blocktool/rfnoc_create_verilog.py +++ b/host/utils/rfnoc_blocktool/rfnoc_create_verilog.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2013-2015 Ettus Research LLC diff --git a/host/utils/rfnoc_image_builder.py b/host/utils/rfnoc_image_builder.py index a031621ca..3fa1ce6f4 100755 --- a/host/utils/rfnoc_image_builder.py +++ b/host/utils/rfnoc_image_builder.py @@ -16,8 +16,6 @@ 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 sys import argparse import hashlib diff --git a/host/utils/setup.py.in b/host/utils/setup.py.in index f932c80ad..0731ce85b 100644 --- a/host/utils/setup.py.in +++ b/host/utils/setup.py.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from distutils.core import setup diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in index 87dc9b3e3..de74d37e2 100644 --- a/host/utils/uhd_images_downloader.py.in +++ b/host/utils/uhd_images_downloader.py.in @@ -33,7 +33,6 @@ Inventory files are JSON files called `inventory.json`, by default. It is possib inventory file in command line arguments, but we don't recommend using this functionality unless you're really sure you need it. """ -from __future__ import print_function import argparse import hashlib import json diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py index 7d904746e..b17b01549 100755 --- a/host/utils/usrp2_card_burner.py +++ b/host/utils/usrp2_card_burner.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2010-2011 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/usrp2_card_burner_gui.py b/host/utils/usrp2_card_burner_gui.py index 5586fc770..edba1f7b4 100755 --- a/host/utils/usrp2_card_burner_gui.py +++ b/host/utils/usrp2_card_burner_gui.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2010-2011 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/usrp2_recovery.py b/host/utils/usrp2_recovery.py index aca1d6f24..dc4ea31a9 100755 --- a/host/utils/usrp2_recovery.py +++ b/host/utils/usrp2_recovery.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2010-2011 Ettus Research LLC # Copyright 2018 Ettus Research, a National Instruments Company diff --git a/host/utils/x300_reset.py b/host/utils/x300_reset.py index 7335c5d75..b00f10197 100755 --- a/host/utils/x300_reset.py +++ b/host/utils/x300_reset.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright 2019 Ettus Research, a National Instruments Brand # |