Explorar el Código

Remove _workers attr of workspaces.

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

+ 0
- 2
earwigbot/wiki/copyvios/workers.py Ver fichero

@@ -267,13 +267,11 @@ class CopyvioWorkspace(object):

if _is_globalized:
self._queues = _global_queues
self._workers = _global_workers
else:
self._queues = _CopyvioQueues()
for i in xrange(num_workers):
worker = _CopyvioWorker(self._queues, until)
worker.start("local-{0:04}.{1}".format(id(self) % 10000, i))
self._workers.append(worker)

def _calculate_confidence(self, delta):
"""Return the confidence of a violation as a float between 0 and 1."""


Cargando…
Cancelar
Guardar