From 33353ef3a739d222d98c0dfcbc8fabf2a4e22a04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 30 Sep 2021 13:44:56 +0530 Subject: [PATCH] Dont use an f-string in check_version_info since it will cause a syntaxerror on older python --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ee132fec5e..8fe6cbaf21 100755 --- a/setup.py +++ b/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()