diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 14:00:46 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-03 14:00:46 +0200 |
commit | 0d4b92d58e6d4e959aeaa780cf29b8d88f46610a (patch) | |
tree | 65dcf7f53ce73ac664b156b5e795d4a67bc53f9e /module/plugins/internal | |
parent | [CaptchaService] Fix typo (diff) | |
download | pyload-0d4b92d58e6d4e959aeaa780cf29b8d88f46610a.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/CaptchaService.py | 8 |
1 files changed, 4 insertions, 4 deletions
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<KEY>.+?)"' - def challenge(self, key): + def challenge(self, key=None): if not key: if self.key: key = self.key |