mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 18:22:37 -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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user