mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 06:04:42 +02: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
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -14,7 +14,7 @@ def check_version_info(minver=(3, 7, 0)):
|
|||
if vi < minver:
|
||||
def fmt(v):
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue