diff options
author | 2015-04-20 22:56:34 +0200 | |
---|---|---|
committer | 2015-04-20 23:02:08 +0200 | |
commit | 892b7cbd4981b764bed30b2ccc5ca73d791c39f2 (patch) | |
tree | 1f5f142ad7e21de9e88f0c15957bbc7e03a9d1ff /pyload/manager/Captcha.py | |
parent | Spare code cosmetics (8) (diff) | |
download | pyload-892b7cbd4981b764bed30b2ccc5ca73d791c39f2.tar.xz |
Spare code cosmetics (9)
Diffstat (limited to 'pyload/manager/Captcha.py')
-rw-r--r-- | pyload/manager/Captcha.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyload/manager/Captcha.py b/pyload/manager/Captcha.py index 4a7582d65..ab9f79b37 100644 --- a/pyload/manager/Captcha.py +++ b/pyload/manager/Captcha.py @@ -13,8 +13,8 @@ class CaptchaManager(object): def __init__(self, core): self.lock = Lock() self.core = core - self.tasks = [] # task store, for outgoing tasks only - self.ids = 0 # only for internal purpose + self.tasks = [] #: task store, for outgoing tasks only + self.ids = 0 #: only for internal purpose def newTask(self, img, format, file, result_type): @@ -43,7 +43,7 @@ class CaptchaManager(object): def getTaskByID(self, tid): self.lock.acquire() for task in self.tasks: - if task.id == str(tid): # task ids are strings + if task.id == str(tid): #: task ids are strings self.lock.release() return task self.lock.release() @@ -81,9 +81,9 @@ class CaptchaTask(object): self.handler = [] #: the hook plugins that will take care of the solution self.result = None self.waitUntil = None - self.error = None # error message + self.error = None #: error message self.status = "init" - self.data = {} # handler can store data here + self.data = {} #: handler can store data here def getCaptcha(self): |