summaryrefslogtreecommitdiffstats
path: root/module/Scheduler.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:33:52 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:33:52 +0200
commit0aa95087ea8f8788499c0beaa12f39642fd204ab (patch)
tree32f51acc8a3eb447862b2bedd4a6f0d2cddb134d /module/Scheduler.py
parent[Locale] templates updated (diff)
downloadpyload-0aa95087ea8f8788499c0beaa12f39642fd204ab.tar.xz
Fix class definition
Diffstat (limited to 'module/Scheduler.py')
-rw-r--r--module/Scheduler.py8
1 files changed, 4 insertions, 4 deletions
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):