mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
mirror: fix syntax error on Python 3.4
It seems that Python 3.5 is more flexible with * expansion, Python 3.4 says: SyntaxError: only named arguments may follow *expression https://travis-ci.org/f-droid/fdroidserver/jobs/309194065
This commit is contained in:
parent
dcbc78d238
commit
bf09109c49
1 changed files with 4 additions and 2 deletions
|
@ -157,7 +157,8 @@ def main():
|
|||
for k in update.GRAPHIC_NAMES:
|
||||
f = d.get(k)
|
||||
if f:
|
||||
urls.append(_append_to_url_path(*components, f))
|
||||
filepath_tuple = components + (f, )
|
||||
urls.append(_append_to_url_path(*filepath_tuple))
|
||||
_run_wget(os.path.join(basedir, *components), urls)
|
||||
for k in update.SCREENSHOT_DIRS:
|
||||
urls = []
|
||||
|
@ -165,7 +166,8 @@ def main():
|
|||
if filelist:
|
||||
components = (section, app['packageName'], locale, k)
|
||||
for f in filelist:
|
||||
urls.append(_append_to_url_path(*components, f))
|
||||
filepath_tuple = components + (f, )
|
||||
urls.append(_append_to_url_path(*filepath_tuple))
|
||||
_run_wget(os.path.join(basedir, *components), urls)
|
||||
|
||||
urls = dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue