Merge pull request #209 from liuhongtong/master-lht-casctl
utils: casctl needs python 3.5+
This commit is contained in:
commit
d797bc7211
@ -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