From 87943c4b032847e8ece917e7cc05e6518bef1f90 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Mon, 31 May 2021 14:46:51 +0200 Subject: [PATCH] use zip --- backend/stream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/stream.py b/backend/stream.py index ab2b4bd..baf2feb 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -67,9 +67,9 @@ class ProxyElem(): logger.info(e) if isinstance(jdata, list): ret_data = [] - for i in range(len(jdata)): - if isinstance(urls[i], str): - ret_data.append(jdata[i]) + for src, dst in zip(urls, jdata): + if isinstance(src, str): + ret_data.append(dst) else: ret_data.append(None) return ret_data