From 0d4b92d58e6d4e959aeaa780cf29b8d88f46610a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 3 Oct 2014 14:00:46 +0200 Subject: Spare code cosmetics --- module/plugins/internal/CaptchaService.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/internal') diff --git a/module/plugins/internal/CaptchaService.py b/module/plugins/internal/CaptchaService.py index 45e56ba42..b2fba0652 100644 --- a/module/plugins/internal/CaptchaService.py +++ b/module/plugins/internal/CaptchaService.py @@ -41,7 +41,7 @@ class CaptchaService: return None - def challenge(self, key): + def challenge(self, key=None): raise NotImplementedError @@ -83,7 +83,7 @@ class ReCaptcha(CaptchaService): return None - def challenge(self, key): + def challenge(self, key=None): if not key: if self.key: key = self.key @@ -143,7 +143,7 @@ class AdsCaptcha(CaptchaService): return None - def challenge(self, key): #: key is tuple(CaptchaId, PublicKey) + def challenge(self, key=None): #: key is tuple(CaptchaId, PublicKey) if not key: if self.key: key = self.key @@ -184,7 +184,7 @@ class SolveMedia(CaptchaService): KEY_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.(no)?script\?k=(?P.+?)"' - def challenge(self, key): + def challenge(self, key=None): if not key: if self.key: key = self.key -- cgit v1.2.3