summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/CaptchaService.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
commit8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch)
treebd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/internal/CaptchaService.py
parentMerge branch 'pr/n1997_GammaC0de' into stable (diff)
downloadpyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/internal/CaptchaService.py')
-rw-r--r--module/plugins/internal/CaptchaService.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py
index 20dc60427..6870e4d81 100644
--- a/module/plugins/internal/CaptchaService.py
+++ b/module/plugins/internal/CaptchaService.py
@@ -4,7 +4,7 @@ from module.plugins.internal.Captcha import Captcha
class CaptchaService(Captcha):
- __name__ = "CaptchaService"
+ __name = "CaptchaService"
__type__ = "captcha"
__version__ = "0.32"
__status__ = "testing"
@@ -23,7 +23,7 @@ class CaptchaService(Captcha):
if self.detect_key(data):
return self.key
else:
- self.fail(_("%s key not found") % self.__name__)
+ self.fail(_("%s key not found") % self.__name)
#@TODO: Recheck in 0.4.10, html is now pyfile.data
@@ -31,7 +31,7 @@ class CaptchaService(Captcha):
if hasattr(self.plugin, "html") and self.plugin.html:
return self.plugin.html
else:
- self.fail(_("%s data not found") % self.__name__)
+ self.fail(_("%s data not found") % self.__name)
def detect_key(self, data=None):