mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont use an f-string in check_version_info since it will cause a syntaxerror on older python
This commit is contained in:
parent
cc682db2ba
commit
33353ef3a7
2
setup.py
2
setup.py
@ -14,7 +14,7 @@ def check_version_info(minver=(3, 7, 0)):
|
|||||||
if vi < minver:
|
if vi < minver:
|
||||||
def fmt(v):
|
def fmt(v):
|
||||||
return '.'.join(map(str, v[:3]))
|
return '.'.join(map(str, v[:3]))
|
||||||
exit(f'calibre requires Python >= {fmt(minver)}. Current Python version: {fmt(vi)}')
|
exit('calibre requires Python >= {}. Current Python version: {}'.format(fmt(minver), fmt(vi)))
|
||||||
|
|
||||||
|
|
||||||
check_version_info()
|
check_version_info()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user