From e4f22521ed7f23042a7c55cbc4ad4fa33ed5c609 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 22 Jul 2018 18:20:51 +0200 Subject: QuerySet is an iterable, remove unrequired list(urls) --- mirrors/management/commands/mirrorcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mirrors') diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py index 9eaf38f1..ad6c3001 100644 --- a/mirrors/management/commands/mirrorcheck.py +++ b/mirrors/management/commands/mirrorcheck.py @@ -246,7 +246,7 @@ class MirrorCheckPool(object): def __init__(self, urls, location, timeout=10, num_threads=10): self.tasks = Queue() self.logs = deque() - for url in list(urls): + for url in urls: self.tasks.put(url) self.threads = [] for _ in range(num_threads): -- cgit v1.2.3-55-g3dc8