From 000426c9d890ba2a71625a7454f9c573f10b9bae Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:17:30 +0200 Subject: 'from time' -> 'import time' and so on... --- pyload/manager/Scheduler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/manager/Scheduler.py') diff --git a/pyload/manager/Scheduler.py b/pyload/manager/Scheduler.py index d7098ae10..630e43022 100644 --- a/pyload/manager/Scheduler.py +++ b/pyload/manager/Scheduler.py @@ -2,9 +2,9 @@ # @author: mkaay import threading +import time from heapq import heappop, heappush -from time import time class AlreadyCalled(Exception): @@ -42,7 +42,7 @@ class Scheduler(object): def addJob(self, t, call, args=[], kwargs={}, threaded=True): d = Deferred() - t += time() + t += time.time() j = Job(t, call, args, kwargs, d, threaded) self.queue.put((t, j)) return d @@ -72,7 +72,7 @@ class Scheduler(object): if not j: break else: - if t <= time(): + if t <= time.time(): j.start() else: self.queue.put((t, j)) -- cgit v1.2.3