summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Captcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/Captcha.py')
-rw-r--r--pyload/manager/Captcha.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/manager/Captcha.py b/pyload/manager/Captcha.py
index 748f2e425..271e6122b 100644
--- a/pyload/manager/Captcha.py
+++ b/pyload/manager/Captcha.py
@@ -2,10 +2,9 @@
# @author: RaNaN, mkaay
import threading
+import time
import traceback
-from time import time
-
from pyload.utils import encode
@@ -112,7 +111,7 @@ class CaptchaTask(object):
def setWaiting(self, sec):
""" let the captcha wait secs for the solution """
- self.waitUntil = max(time() + sec, self.waitUntil)
+ self.waitUntil = max(time.time() + sec, self.waitUntil)
self.status = "waiting"
@@ -141,7 +140,7 @@ class CaptchaTask(object):
def timedOut(self):
- return time() > self.waitUntil
+ return time.time() > self.waitUntil
def invalid(self):