opencas.py uses the f-string feature of python3.6+.

Signed-off-by: Sha Fanghao <shafanghao@gmail.com>
This commit is contained in:
Sha Fanghao 2021-03-29 18:17:11 +08:00
parent 6c4bf5a9ba
commit b533e2cbf9

View File

@ -10,8 +10,8 @@ import sys
import opencas
if sys.version_info < (3, 5):
raise RuntimeError('At least Python 3.5 is required')
if sys.version_info < (3, 6):
raise RuntimeError('At least Python 3.6 is required')
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)