gw: Require Python version >= 3.7.

Earlier versions are EOL, and gw may be using features which do
not exist in these earlier versions (it's untested).
This commit is contained in:
Keir Fraser 2022-01-05 13:32:18 +00:00
parent b07ffb6a8b
commit ad10f6403a
2 changed files with 3 additions and 4 deletions

4
gw
View file

@ -2,8 +2,8 @@
import sys, os
if sys.version_info < (3,0,0):
print('** FATAL ERROR: Greaseweazle requires Python 3')
if sys.version_info < (3,7,0):
print('** FATAL ERROR: Greaseweazle requires Python 3.7 or later')
sys.exit(1)
# Update the search path and import the real script

View file

@ -14,8 +14,7 @@ import importlib
# Put all logging/printing on stderr. This keeps stdout clean for future use.
# Configure line buffering, even if the logging output is not to a console.
if sys.version_info >= (3,7,0):
sys.stderr.reconfigure(line_buffering=True)
sys.stderr.reconfigure(line_buffering=True)
sys.stdout = sys.stderr
from greaseweazle import version