From 54df4096ced6cdbd61c349a728d00eb83f4ba295 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 24 Apr 2019 11:56:13 -0400 Subject: [PATCH] Forward pror to Python achieved, still runs under 2. --- sst.py | 2 ++ test/Makefile | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sst.py b/sst.py index 8466a48..fec64ec 100755 --- a/sst.py +++ b/sst.py @@ -12,6 +12,8 @@ See the doc/HACKING file in the distribution for designers notes and advice on how to modify (and how not to modify!) this code. """ from __future__ import print_function, division +# Runs under Python 2 an Python 3. Preserve this property! +# SPDX-License-Identifier: BSD-2-clause import os, sys, math, curses, time, pickle, copy, gettext, getpass import getopt, socket, locale diff --git a/test/Makefile b/test/Makefile index 91983ce..9c27e03 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,8 +1,12 @@ # Test-suite makefile for sst -PYTHON=python2 +PYTHON=python -all: regress +all: + @echo "With Python 2:" + @make -e PYTHON=python2 regress + @echo "With Python 3:" + @make -e PYTHON=python3 regress @echo "No diff output is good news." .SUFFIXES: .log .chk -- 2.31.1