Skip to content

Commit e41b422

Browse files
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.
1 parent f6ce726 commit e41b422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/kiwix-resources

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def set_cacheid(resource_matchobj):
5050
resource = 'skin/' + resource_matchobj.group(3)
5151
extra_query = resource_matchobj.group(4)
5252
cacheid = 'cacheid=' + resource_revisions[resource]
53-
return f'"{path}?{cacheid}{extra_query}"'
53+
return '"' + path + '?' + cacheid + extra_query + '"'
5454

5555
def preprocess_line(line):
5656
if 'KIWIXCACHEID' in line:
@@ -82,7 +82,7 @@ def symlink_resource(src, resource_path):
8282
os.symlink(src, resource_path)
8383

8484
def preprocess_resource(srcdir, resource_path, outdir):
85-
print(f'Preprocessing {resource_path}...')
85+
print('Preprocessing', resource_path, '...')
8686
resource_dir = os.path.dirname(resource_path)
8787
if resource_dir != '':
8888
os.makedirs(os.path.join(outdir, resource_dir), exist_ok=True)

0 commit comments

Comments
 (0)