Explorar el Código

CopyvioSource.workspace should be public.

tags/v0.2
Ben Kurtovic hace 9 años
padre
commit
c7b3b7bc7f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      earwigbot/wiki/copyvios/workers.py

+ 1
- 1
earwigbot/wiki/copyvios/workers.py Ver fichero

@@ -88,6 +88,7 @@ class _CopyvioSource(object):
"""Represents a single suspected violation source (a URL).""" """Represents a single suspected violation source (a URL)."""


def __init__(self, workspace, url, key, headers=None, timeout=5): def __init__(self, workspace, url, key, headers=None, timeout=5):
self.workspace = workspace
self.url = url self.url = url
self.key = key self.key = key
self.headers = headers self.headers = headers
@@ -95,7 +96,6 @@ class _CopyvioSource(object):
self.confidence = 0.0 self.confidence = 0.0
self.chains = (EMPTY, EMPTY_INTERSECTION) self.chains = (EMPTY, EMPTY_INTERSECTION)


self._workspace = workspace
self._event = Event() self._event = Event()


def active(self): def active(self):


Cargando…
Cancelar
Guardar