diff options
Diffstat (limited to 'module/Scheduler.py')
-rw-r--r-- | module/Scheduler.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/Scheduler.py b/module/Scheduler.py index 0bc396b69..71b5f96af 100644 --- a/module/Scheduler.py +++ b/module/Scheduler.py @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>. - + @author: mkaay """ @@ -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): @@ -138,4 +138,4 @@ class PriorityQueue(): except IndexError: return None, None finally: - self.lock.release()
\ No newline at end of file + self.lock.release() |