From e159a2e981d2629fa145ab584e8c3853b097d180 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 28 Mar 2016 11:22:04 +0200 Subject: Remove unecessary list comprehension Signed-off-by: Florian Pritz --- fb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fb.py') diff --git a/fb.py b/fb.py index 2a04de4..418d047 100755 --- a/fb.py +++ b/fb.py @@ -138,7 +138,7 @@ class CURLWrapper: ret = self.send_post_progress("/file/upload", []) rets["ids"] += ret["ids"] rets["urls"] += ret["urls"] - for new_id, new_url, existing in zip(ret["ids"], ret["urls"], [a for a in files if a.should_upload()]): + for new_id, new_url, existing in zip(ret["ids"], ret["urls"], chunk): existing.id = new_id existing.url = new_url -- cgit v1.2.3-24-g4f1b