diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-07-22 18:20:51 +0200 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-07-22 18:20:51 +0200 |
commit | e4f22521ed7f23042a7c55cbc4ad4fa33ed5c609 (patch) | |
tree | 58db1d7daba3ea49dbdb4bcce034874d66253988 | |
parent | 196b1fd8950abe9137e1583f172090b888d487ef (diff) | |
download | archweb-e4f22521ed7f23042a7c55cbc4ad4fa33ed5c609.tar.gz archweb-e4f22521ed7f23042a7c55cbc4ad4fa33ed5c609.zip |
QuerySet is an iterable, remove unrequired list(urls)
-rw-r--r-- | mirrors/management/commands/mirrorcheck.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |