From ca68195b5d12c5410cfac8d459a0b0902c4c72c7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 1 Dec 2020 18:50:12 +0100 Subject: fpga: Remove Python2 support from build system - 2to3 was used to convert the Python scripts, except where the tool choked and manual intervention was required - All references to "python" where replaced with "python3" - buffer() was replaced by memoryview() --- fpga/usrp3/tools/scripts/launch_vivado.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'fpga/usrp3/tools/scripts/launch_vivado.py') diff --git a/fpga/usrp3/tools/scripts/launch_vivado.py b/fpga/usrp3/tools/scripts/launch_vivado.py index 01774bef3..f9cca2014 100755 --- a/fpga/usrp3/tools/scripts/launch_vivado.py +++ b/fpga/usrp3/tools/scripts/launch_vivado.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Notice: Some parts of this file were copied from PyBOMBS, which has a # different copyright, and is highlighted appropriately. The following @@ -24,7 +24,6 @@ Run Vivado builds """ -from __future__ import print_function import os import sys import re @@ -34,10 +33,7 @@ import time import argparse import subprocess import threading -try: - from Queue import Queue, Empty -except ImportError: - from queue import Queue, Empty # Py3k +from queue import Queue, Empty READ_TIMEOUT = 0.1 # s @@ -472,4 +468,3 @@ def main(): if __name__ == "__main__": exit(not main()) - -- cgit v1.2.3