Make Captcha class more sensible

master
Sven Slootweg 12 years ago
parent bf986393b9
commit b1c0bf1a26

@ -62,12 +62,14 @@ class Task():
return self.opener.open(request).read() return self.opener.open(request).read()
class Captcha(): class Captcha():
image = "" image = None
audio = "" audio = None
text = None
def __init__(image="", audio=""): def __init__(image=None, audio=None, text=None):
self.image = image self.image = image
self.audio = audio self.audio = audio
self.text = text
def unescape(s): def unescape(s):
return HTMLParser.unescape.__func__(HTMLParser, s) return HTMLParser.unescape.__func__(HTMLParser, s)

Loading…
Cancel
Save