From 0aa95087ea8f8788499c0beaa12f39642fd204ab Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 14 Jul 2014 02:33:52 +0200 Subject: Fix class definition --- module/Scheduler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/Scheduler.py') diff --git a/module/Scheduler.py b/module/Scheduler.py index cdc4c8360..71b5f96af 100644 --- a/module/Scheduler.py +++ b/module/Scheduler.py @@ -26,7 +26,7 @@ class AlreadyCalled(Exception): pass -class Deferred(): +class Deferred: def __init__(self): self.call = [] self.result = () @@ -44,7 +44,7 @@ class Deferred(): f(*args ** kwargs) -class Scheduler(): +class Scheduler: def __init__(self, core): self.core = core @@ -88,7 +88,7 @@ class Scheduler(): break -class Job(): +class Job: def __init__(self, time, call, args=[], kwargs={}, deferred=None, threaded=True): self.time = float(time) self.call = call @@ -111,7 +111,7 @@ class Job(): self.run() -class PriorityQueue(): +class PriorityQueue: """ a non blocking priority queue """ def __init__(self): -- cgit v1.2.3