From 42fd6e892614fff75dcf21c54f21147f3c336877 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 27 Feb 2022 20:46:48 +0400 Subject: [PATCH] Made kiwix-resources work with python 3.5- Formatted string literals appeared in Python 3.6. Some CI platforms still use older versions of Python. --- scripts/kiwix-resources | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kiwix-resources b/scripts/kiwix-resources index 9bcfbda82..840f8b080 100755 --- a/scripts/kiwix-resources +++ b/scripts/kiwix-resources @@ -50,7 +50,7 @@ def set_cacheid(resource_matchobj): resource = 'skin/' + resource_matchobj.group(3) extra_query = resource_matchobj.group(4) cacheid = 'cacheid=' + resource_revisions[resource] - return f'{path}?{cacheid}{extra_query}' + return path + '?' + cacheid + extra_query def preprocess_line(line): if 'KIWIXCACHEID' in line: @@ -82,7 +82,7 @@ def symlink_resource(src, resource_path): os.symlink(src, resource_path) def preprocess_resource(srcdir, resource_path, outdir): - print(f'Preprocessing {resource_path}...') + print('Preprocessing', resource_path, '...') resource_dir = os.path.dirname(resource_path) if resource_dir != '': os.makedirs(os.path.join(outdir, resource_dir), exist_ok=True)