From 087dd29560a157dcf59aa18ed688d3f5b5edfd99 Mon Sep 17 00:00:00 2001 From: liuhongtong Date: Fri, 29 Nov 2019 11:12:58 +0800 Subject: [PATCH] utils: casctl needs python 3.5+ opencas.py invokes subprocess.run(). Only python 3.5 and later versions support subprocess.run(). Signed-off-by: liuhongtong --- utils/casctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/casctl b/utils/casctl index 8b94770..5912c6a 100755 --- a/utils/casctl +++ b/utils/casctl @@ -9,6 +9,9 @@ import sys import re import opencas +if sys.version_info < (3, 5): + raise RuntimeError('At least Python 3.5 is required') + def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs)