From f8f4669460af41776fd823654345b6f9f03bb687 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 4 Sep 2014 22:58:00 -0500 Subject: [PATCH] Remove unnecessary key attribute of sources. --- earwigbot/wiki/copyvios/result.py | 3 +-- earwigbot/wiki/copyvios/workers.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/earwigbot/wiki/copyvios/result.py b/earwigbot/wiki/copyvios/result.py index 26f4d59..d664965 100644 --- a/earwigbot/wiki/copyvios/result.py +++ b/earwigbot/wiki/copyvios/result.py @@ -42,10 +42,9 @@ class CopyvioSource(object): - :py:attr:`skipped`: whether this URL was skipped during the check """ - def __init__(self, workspace, url, key, headers=None, timeout=5): + def __init__(self, workspace, url, headers=None, timeout=5): self.workspace = workspace self.url = url - self.key = key self.headers = headers self.timeout = timeout self.confidence = 0.0 diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index 2030b78..88c0c38 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -323,7 +323,7 @@ class CopyvioWorkspace(object): from urlparse import urlparse key = u".".join(urlparse(url).netloc.split(".")[-2:]) - source = CopyvioSource(url=url, key=key, **self._source_args) + source = CopyvioSource(url=url, **self._source_args) self.sources.append(source) logmsg = u"enqueue(): {0} {1} -> {2}" if key in self._queues.sites: