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.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyload/manager/Captcha.py b/pyload/manager/Captcha.py
index ab9f79b37..748f2e425 100644
--- a/pyload/manager/Captcha.py
+++ b/pyload/manager/Captcha.py
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
# @author: RaNaN, mkaay
+import threading
+import traceback
+
from time import time
-from traceback import print_exc
-from threading import Lock
from pyload.utils import encode
@@ -11,7 +12,7 @@ from pyload.utils import encode
class CaptchaManager(object):
def __init__(self, core):
- self.lock = Lock()
+ self.lock = threading.Lock()
self.core = core
self.tasks = [] #: task store, for outgoing tasks only
self.ids = 0 #: only for internal purpose
@@ -61,7 +62,7 @@ class CaptchaManager(object):
plugin.captchaTask(task)
except Exception:
if self.core.debug:
- print_exc()
+ traceback.print_exc()
if task.handler or cli: #: the captcha was handled
self.tasks.append(task)