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 <hongtongliu@126.com>
This commit is contained in:
parent
8cef2b41b0
commit
087dd29560
@ -9,6 +9,9 @@ import sys
|
|||||||
import re
|
import re
|
||||||
import opencas
|
import opencas
|
||||||
|
|
||||||
|
if sys.version_info < (3, 5):
|
||||||
|
raise RuntimeError('At least Python 3.5 is required')
|
||||||
|
|
||||||
def eprint(*args, **kwargs):
|
def eprint(*args, **kwargs):
|
||||||
print(*args, file=sys.stderr, **kwargs)
|
print(*args, file=sys.stderr, **kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user