We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6ce726 commit e41b422Copy full SHA for e41b422
scripts/kiwix-resources
@@ -50,7 +50,7 @@ def set_cacheid(resource_matchobj):
50
resource = 'skin/' + resource_matchobj.group(3)
51
extra_query = resource_matchobj.group(4)
52
cacheid = 'cacheid=' + resource_revisions[resource]
53
- return f'"{path}?{cacheid}{extra_query}"'
+ return '"' + path + '?' + cacheid + extra_query + '"'
54
55
def preprocess_line(line):
56
if 'KIWIXCACHEID' in line:
@@ -82,7 +82,7 @@ def symlink_resource(src, resource_path):
82
os.symlink(src, resource_path)
83
84
def preprocess_resource(srcdir, resource_path, outdir):
85
- print(f'Preprocessing {resource_path}...')
+ print('Preprocessing', resource_path, '...')
86
resource_dir = os.path.dirname(resource_path)
87
if resource_dir != '':
88
os.makedirs(os.path.join(outdir, resource_dir), exist_ok=True)
0 commit comments