From bbe11be6673acede026709c42bb74bfc90a42938 Mon Sep 17 00:00:00 2001 From: Andy Dirnberger Date: Thu, 19 Oct 2023 17:56:38 -0400 Subject: [PATCH] Support host script on Python 3.9 (#141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The host script can’t run on Python 3.9 because of [PEP 604][pep]-style annotations. Adding a future import can fix this. The `print_function` import is being removed since it is unnecessary on all releases of Python 3. [pep]: https://peps.python.org/pep-0604/ --- host/nxdt_host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/nxdt_host.py b/host/nxdt_host.py index d5c1a99..bad4929 100644 --- a/host/nxdt_host.py +++ b/host/nxdt_host.py @@ -32,7 +32,7 @@ # Under MacOS, use `brew install libusb` to install libusb via Homebrew. # Under Linux, you should be good to go from the start. If not, just use the package manager from your distro to install libusb. -from __future__ import print_function +from __future__ import annotations import sys import os