From 853d29a0f12cdcb6c406b829a57439c7ea9b570d Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 14 Jul 2011 20:59:01 +0200 Subject: has_key refractored, package name generator by Geek --- module/plugins/hooks/CaptchaTrader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks/CaptchaTrader.py') diff --git a/module/plugins/hooks/CaptchaTrader.py b/module/plugins/hooks/CaptchaTrader.py index c41ed9f97..a0e8a0453 100644 --- a/module/plugins/hooks/CaptchaTrader.py +++ b/module/plugins/hooks/CaptchaTrader.py @@ -132,12 +132,12 @@ class CaptchaTrader(Hook): self.logInfo(_("Your CaptchaTrader Account has not enough credits")) def captchaCorrect(self, task): - if task.data.has_key("ticket"): + if "ticket" in task.data: ticket = task.data["ticket"] self.respond(ticket, True) def captchaInvalid(self, task): - if task.data.has_key("ticket"): + if "ticket" in task.data: ticket = task.data["ticket"] self.respond(ticket, False) -- cgit v1.2.3