[ooni-probe/master] PEP8 cleanup

commit 93fdf3a412069992530bf8d2f93e4254fabd0742 Author: kudrom <kudrom@riseup.net> Date: Fri Aug 22 16:00:47 2014 +0200 PEP8 cleanup --- ooni/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ooni/tasks.py b/ooni/tasks.py index f2f4f75..650e0b0 100644 --- a/ooni/tasks.py +++ b/ooni/tasks.py @@ -4,6 +4,7 @@ from ooni import errors as e from ooni.settings import config from twisted.internet import defer, reactor + class BaseTask(object): _timer = None @@ -60,6 +61,7 @@ class BaseTask(object): """ pass + class TaskWithTimeout(BaseTask): timeout = 30 # So that we can test the callLater calls @@ -87,6 +89,7 @@ class TaskWithTimeout(BaseTask): self._timer = self.clock.callLater(self.timeout, self._timedOut) return BaseTask.start(self) + class Measurement(TaskWithTimeout): def __init__(self, test_instance, test_method, test_input): """ @@ -131,7 +134,6 @@ class Measurement(TaskWithTimeout): class ReportEntry(TaskWithTimeout): - def __init__(self, reporter, entry): self.reporter = reporter self.entry = entry
participants (1)
-
art@torproject.org